• 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
simple window close question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

simple window close question


  • Subject: simple window close question
  • From: Bob Sabiston <email@hidden>
  • Date: Tue, 9 Sep 2008 14:39:21 -0500

Hi,

I've got a cocoa-in-carbon window, and I want to let my carbon app know when the cocoa window closes. I'm kind of new to cocoa--how do I do this? Here's what I've tried so far.

I made File's Owner the delegate of my window by dragging a line between them in Interface Builder. In my Controller class implementation I added this:

- (BOOL)windowShouldClose:(id)sender {
    return NO;
}

I'm not sure that's the right place for it. What connects my one controller class to the File's Owner? By having that function return NO, shouldn't it prevent me from closing the window? I thought I would start there and then add the carbon-connectivity. In any case, it isn't preventing me from closing the window, and I don't think I can add debugging stops to halt execution within my cocoa bundle.

Thanks for any tips,
Bob


_______________________________________________

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: singleton managed object / obtaining mo context
  • Next by Date: Re: While we're on the subject of DMG's for software distribution...
  • Previous by thread: Re: singleton managed object / obtaining mo context SOLVED
  • Next by thread: No action msg after NSPathControl "Choose"
  • Index(es):
    • Date
    • Thread