• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NEWBIE] windowDidBecomeKey ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[NEWBIE] windowDidBecomeKey ? (From: Stephane Pinel <email@hidden>)
 >Re: [NEWBIE] windowDidBecomeKey ? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Changing Arrow In NSOutlineView
  • Next by Date: [ANN] Next CocoaHeads: Aug 11. New Chapters in Silicon Valley and St. Louis
  • Previous by thread: Re: [NEWBIE] windowDidBecomeKey ?
  • Next by thread: Since when does caling [NSTimer invalidate] release the object that spawned it?
  • Index(es):
    • Date
    • Thread