• 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: Newb: Targeting an instance of a class instantiated by a NIB file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newb: Targeting an instance of a class instantiated by a NIB file


  • Subject: Re: Newb: Targeting an instance of a class instantiated by a NIB file
  • From: Brad Gibbs <email@hidden>
  • Date: Fri, 12 Sep 2008 20:24:56 -0700

OK.... XCode doesn't put up any errors or any warnings for this code and the app works as intended. The code is in an NSViewController, so I was targeting the view controller's view and then the view's window. What is the correct approach?



On Sep 12, 2008, at 7:09 PM, Bill Bumgarner wrote:


On Sep 12, 2008, at 7:08 PM, Brad Gibbs wrote:
[self.view.window.parentWindow.windowController removeChildWindow: [self.view.window]];

[self.view.window] doesn't make any sense.

b.bum



_______________________________________________

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


  • Follow-Ups:
    • Re: Newb: Targeting an instance of a class instantiated by a NIB file
      • From: Bill Bumgarner <email@hidden>
References: 
 >Newb: Targeting an instance of a class instantiated by a NIB file (From: Brad Gibbs <email@hidden>)
 >Re: Newb: Targeting an instance of a class instantiated by a NIB file (From: Jonathan Hess <email@hidden>)
 >Re: Newb: Targeting an instance of a class instantiated by a NIB file (From: Brad Gibbs <email@hidden>)
 >Re: Newb: Targeting an instance of a class instantiated by a NIB file (From: Jonathan Hess <email@hidden>)
 >Re: Newb: Targeting an instance of a class instantiated by a NIB file (From: Jonathan Hess <email@hidden>)
 >Re: Newb: Targeting an instance of a class instantiated by a NIB file (From: Brad Gibbs <email@hidden>)
 >Re: Newb: Targeting an instance of a class instantiated by a NIB file (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Newb: Targeting an instance of a class instantiated by a NIB file
  • Next by Date: Re: Newb: Targeting an instance of a class instantiated by a NIB file
  • Previous by thread: Re: Newb: Targeting an instance of a class instantiated by a NIB file
  • Next by thread: Re: Newb: Targeting an instance of a class instantiated by a NIB file
  • Index(es):
    • Date
    • Thread