• 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
Can seem to get any delegate messages with NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can seem to get any delegate messages with NSWindow


  • Subject: Can seem to get any delegate messages with NSWindow
  • From: Rick Meier <email@hidden>
  • Date: Thu, 19 Jul 2007 17:56:20 -0600

I have created a window programatically using:

	NSRect5 rect = ...
	NSWindow		*pWin = [[NSWindow alloc] initWithContentRect:rect
														styleMask:NSBorderlessWindowMask
														  backing:NSBackingStoreBuffered
															defer:NO];
	[pWin setDelegate:delegate];


I have a - (BOOL)windowShouldClose:(id)sender; method in my delegate.

I call [pWin performClose:self] from a view inside of the window but the delegate never gets called.

I have checked the delegate with [pWin delegate] and it is set to my object.

Do I need to do something to my window so that the messages will be sent/received.

This app does not have a NIB (and will not) so I have to do it programmatically.

Any ideas?

Thanks






_______________________________________________

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


  • Prev by Date: Re: Fetching result from NSAppleScript
  • Next by Date: Re: Finder Open file versus double-clicking file
  • Previous by thread: Re: Newbie Question: Why would my App freeze when I select a row inan NSTableView? - Found word(s) Re: in the subject
  • Next by thread: Re: Can seem to get any delegate messages with NSWindow
  • Index(es):
    • Date
    • Thread