[OGo-Developer] LSJob (instance) does not recognize setNotificationTime:
Helge Hess
developer@opengroupware.org
Mon, 12 Mar 2007 08:53:14 +0100
On Mar 12, 2007, at 08:48, Sebastian Reitenbach wrote:
> In OGoJobs/SkyJobDocument.h, I have a setNotificationTime defined,
> as it is in
> the
> SkyAppointmentDocument.h for appointments, like this: -
> (void)setNotificationTime:(NSNumber
> *)_notificationTime;
....
> [job setNotificationTime:(id)[NSNull null]];
...
> I get no compiler warnings or errors about it while compiling,
(well, if you cast it to 'id', you can't expect warnings ... ;-)
> Reason: LSJob (instance) does not recognize setNotificationTime:
Yes, the LSJob class has no such method. You defined it on
"SkyAppointmentDocument".
You probably want to do:
[job takeValue:nil forKey:@"notificationTime"];
or maybe
[job takeValue:[NSNull null] forKey:@"notificationTime"];
though the former should be the better option (NSNull is more or less
the object representation of 'nil' which is only required for
collections like storing nil in NSArray or NSDictionary).
Helge
--
Helge Hess
http://www.helgehess.eu/