• 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: event/notification for focus?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: event/notification for focus?


  • Subject: Re: event/notification for focus?
  • From: Luc Vandal <email@hidden>
  • Date: Fri, 08 Apr 2005 12:46:25 -0400

Hi Shawn,

here's how I register:

NSNotificationCenter* center = [NSNotificationCenter defaultCenter];


[center addObserver:self

selector:@selector(windowDidMakeFirstResponder:)

name:@"WindowDidMakeFirstResponder" object:nil];


Luc


On 8-Apr-05, at 12:43 PM, Shawn Erickson wrote:

On Apr 8, 2005, at 9:29 AM, Luc Vandal wrote:

Basically there's a text field, check boxes, radio buttons and buttons. Like I said, makeFirstResponder is called every time I tab through the controls but the notification is only received once, when the window has closed.

How did you subscribe to the notification? Did you try using the delegate pathway?

>From the code I see I don't see why you would be getting the behavior you described.

Are you running any type of run loop of your own while this window is up?
Is it a modal window of some type?

-Shawn
 _______________________________________________
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

  • Follow-Ups:
    • Re: event/notification for focus?
      • From: Shawn Erickson <email@hidden>
References: 
 >event/notification for focus? (From: Luc Vandal <email@hidden>)
 >Re: event/notification for focus? (From: Dustin Voss <email@hidden>)
 >Re: event/notification for focus? (From: Luc Vandal <email@hidden>)
 >Re: event/notification for focus? (From: Shawn Erickson <email@hidden>)
 >Re: event/notification for focus? (From: Luc Vandal <email@hidden>)
 >Re: event/notification for focus? (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: ADC Core Data article
  • Next by Date: Re: Making NSCell invisible in an NSOutlineView
  • Previous by thread: Re: event/notification for focus?
  • Next by thread: Re: event/notification for focus?
  • Index(es):
    • Date
    • Thread