• 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: Notification Sent When Window Is Ordered Back?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notification Sent When Window Is Ordered Back?


  • Subject: Re: Notification Sent When Window Is Ordered Back?
  • From: "Chunk 1978" <email@hidden>
  • Date: Sun, 14 Dec 2008 12:01:31 -0500

ok... so here's a strange issue:

resigning the key window works fine

-=-=-=-
- (void)resignKeyWindow
	{
	NSLog (@"Out");
	}
-=-=-=-

but if i also include the following method, resignKeyWindow no longer
works, and i only receive logs for becomeKeyWindow:

-=-=-=-
- (void)becomeKeyWindow
	{
	NSLog (@"In");
	}
-=-=-=-

writing instead becomeMainWindow works better, but in order for it to
work i need to set canBecomeKeyWindow:NO on all the other windows
produced by this window (like the NSColorPanel)...


On Sun, Dec 14, 2008 at 11:34 AM, James Bucanek <email@hidden> wrote:
> Chunk 1978 <mailto:email@hidden> wrote (Sunday, December 14, 2008 8:28 AM -0500):
>
>> honest to god, i have zero idea why this isn't working...
>
>> - (void)windowDidResignKey:(NSNotification *)notification
>>   {
>>   NSLog(@"window resigned key");
>>   }
>
> Probably because it's resignKeyWindow: not windowDidResignKey:
>
> --
> James Bucanek
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Notification Sent When Window Is Ordered Back? (From: "Chunk 1978" <email@hidden>)
 >Re: Notification Sent When Window Is Ordered Back? (From: James Bucanek <email@hidden>)

  • Prev by Date: Cocoa Development in Bratislava ?
  • Next by Date: Re: Notification Sent When Window Is Ordered Back?
  • Previous by thread: Re: Notification Sent When Window Is Ordered Back?
  • Next by thread: Re: Notification Sent When Window Is Ordered Back?
  • Index(es):
    • Date
    • Thread