• 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: How to resolve conflict between 2 NSPanels?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to resolve conflict between 2 NSPanels?


  • Subject: Re: How to resolve conflict between 2 NSPanels?
  • From: Luc Vandal <email@hidden>
  • Date: Fri, 11 Nov 2005 11:59:10 -0500


Here's what I do (for both dialogs):

NSNotificationCenter* center = [NSNotificationCenter defaultCenter];

	[center addObserver:self
						 selector:@selector(windowDidMakeFirstResponder:)
								 name:@"WindowTextNoteDidMakeFirstResponder" object:nil];

	[center addObserver:self
						 selector:@selector(windowDidBecomeKey:)
								 name:@"NSWindowDidBecomeKeyNotification" object:nil];



The thing is that I have several dialogs that works just fine. It's just those 2 dialogs that are troublesome.

Thanks!

Luc

On 11-Nov-05, at 11:47 AM, j o a r wrote:


On 11 nov 2005, at 17.29, Luc Vandal wrote:

I've been experiencing a weird problem lately with 2 dialogs. I don't know where the conflict could be (in the nib file?). Basically, dialog 1 will receive notifications that were supposed to be received by dialog 2 and vice-versa.

How do you sign up for these notifications?

//	WindowDidBecomeKey
- (void)WindowDidBecomeKey:(NSNotification*)notification

You should start method names with a lower case character.

j o a r




_______________________________________________ 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: How to resolve conflict between 2 NSPanels?
      • From: j o a r <email@hidden>
References: 
 >How to resolve conflict between 2 NSPanels? (From: Luc Vandal <email@hidden>)
 >Re: How to resolve conflict between 2 NSPanels? (From: j o a r <email@hidden>)

  • Prev by Date: alias not resolving after a movePath
  • Next by Date: Re: How to resolve conflict between 2 NSPanels?
  • Previous by thread: Re: How to resolve conflict between 2 NSPanels?
  • Next by thread: Re: How to resolve conflict between 2 NSPanels?
  • Index(es):
    • Date
    • Thread