[Openmcl-devel] number of args for #/addObserver:selector:name:object
Arthur W Cater
arthur.cater at ucd.ie
Wed Dec 17 03:04:44 PST 2008
Grovelling apologies!
I am missing the arg that says what the observing object is. Duh.
Arthur
----- Original Message -----
From: Arthur W Cater <arthur.cater at ucd.ie>
Date: Wednesday, December 17, 2008 10:54 am
Subject: [Openmcl-devel] number of args for #/addObserver:selector:name:object
To: Openmcl-devel <Openmcl-devel at clozure.com>
> Please advise me: I do not understand why 5 args are required.
> ;Compiler warnings for "/Users/arthur/goblin/current/openmcl.lisp" :
> ; In USER-PICK-COLOR: In the call to NEXTSTEP-FUNCTIONS:|addObserver:selector:name:object:| with arguments ((NEXTSTEP-FUNCTIONS:|defaultCenter| NS:NS-NOTIFICATION-CENTER) (OBJC:@SELECTOR NEXTSTEP-FUNCTIONS:|NSWindowWillCloseNotification|) NIL PANEL),
> ; 4 arguments were provided, but at least 5 are required
> ; by the current global definition of NEXTSTEP-FUNCTIONS:|addObserver:selector:name:object:|
> Incidentally, the reason I'm doing this is to get a modal USER-PICK-COLOR function,
> the only way I can think of getting a #/stopModal message is by reacting to the NSWindowWillCloseNotification, if anyone has advice on a better way I am all ears!
> Arthur
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20081217/cd8330ab/attachment.htm>
More information about the Openmcl-devel
mailing list