• 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
MyDocument's Window Outlet...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MyDocument's Window Outlet...


  • Subject: MyDocument's Window Outlet...
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Wed, 12 Nov 2008 13:22:18 -0500

I noticed that, by default, when creating a new Document Based application, if you open the MyDocument's nib file, the FileOwner's object (i.e. MyDocument's instance) already has an outlet named "window" which is connected to my main document's window. However, it seems like it's impossible to access this "window" outlet in my code... using

[window setToolbar:] for example gives me an error saying that "window" wasn't declared....

If I try to declare a "window" outlet in my code and try to connect it in IB, I end up with 2 outlets named "window"...

Of course the easy work around was to declare a new outlet that I named "mainWindow" and connected to my file owner, that way I can access the main window from my code... but still I was wondering why it is not possible to access the "window" outlet that is created automatically with every new "Document Based" project...? What's the use of this outlet if I can't access it in my code?

Jean-Nicolas Jolivet
_______________________________________________

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: MyDocument's Window Outlet...
      • From: Alexander Spohr <email@hidden>
    • Re: MyDocument's Window Outlet...
      • From: "Kyle Sluder" <email@hidden>
    • Re: MyDocument's Window Outlet...
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Foundation Tool with GC?
  • Next by Date: Re: tableView:objectValueForTableColumn:row not being called
  • Previous by thread: Re: overt and covert retain-release question (instigated by UIViewController on iPhone)
  • Next by thread: Re: MyDocument's Window Outlet...
  • Index(es):
    • Date
    • Thread