[OGo-Developer] LSJob (instance) does not recognize setNotificationTime:

Sebastian Reitenbach developer@opengroupware.org
Mon, 12 Mar 2007 08:48:52 +0100


Hi list,

due to the lots of explanations how commands are working and how to access
values of objects, 
I tried again to work on skyjobnotify, to send out task reminders, more on this
here on this 
bug report:
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1167

In OGoJobs/SkyJobDocument.h, I have a setNotificationTime defined, as it is in
the 
SkyAppointmentDocument.h for appointments, like this: -
(void)setNotificationTime:(NSNumber 
*)_notificationTime;

in skyjobnotify.m I have a following statement, where I want to set the
notification time:

     // mark as send
    [job setNotificationTime:(id)[NSNull null]];

I get no compiler warnings or errors about it while compiling, but when I run
skyjobnotify I 
get the following exception:

Uncatched Objective-C exception:
exceptionClass <class ObjcRuntimeException>
Reason: LSJob (instance) does not recognize setNotificationTime:
UserInfo: no userinfo

I more or less copied the stuff setNotificationTime from skyaptnotify. There it
works, but I 
do not see a difference?

anybody here with a suggestion, or need more info on what I did, what is the
missing piece?

kind regards
Sebastian