Re: [NEWBIE] windowDidBecomeKey ?
Re: [NEWBIE] windowDidBecomeKey ?
- Subject: Re: [NEWBIE] windowDidBecomeKey ?
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 8 Aug 2005 16:30:01 -0700
On Aug 8, 2005, at 4:00 PM, Ricky Sharp wrote:
Can't figure out in which situation -windowDidBecomeKey delegate
will fire ? I've implemented it in
my windowController but it seems to not fire. Any link in order to
understand how to do it properly ?
You need to add an observer for NSWindowDidBecomeKeyNotification.
There should be no need to do so if you simply implement the delegate
method.
If a delegate method is not invoked, then:
(a) Check the method spelling and signature:
- (void)windowDidBecomeKey
is not the same as
- (void)windowDidBecomeKey:sender
(and
- (void)windowDidBecameKey:sender
is not the same as
- (void)windowDidBecomeKey:sender
)
(b) Check that you actually set the delegate...
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden