Re: references to controllers in document based applications
Re: references to controllers in document based applications
- Subject: Re: references to controllers in document based applications
- From: "Kyle Sluder" <email@hidden>
- Date: Sat, 9 Feb 2008 21:26:07 -0500
On Feb 9, 2008 5:09 PM, Torsten Curdt <email@hidden> wrote:
> Yeah ...basically because when I call [self close] in my NSDocument
> class - nothing happens :)
I really think you're doing something wrong here. I created a new
Cocoa Document-based Application and added a -closeButtonClicked:
action to it, which does nothing but NSLog and [self close]. Then I
dropped an NSButton on my document window and wired it straight to the
File's Owner's -closeButtonClicked: method.
Run the app and click the button, the document (and its window) close.
Perhaps you did something differently? Are you sure that code is
executing at all? Drop a breakpoint on it to see.
--Kyle Sluder
_______________________________________________
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