• 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: Outlets not allowing direct access...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Outlets not allowing direct access...


  • Subject: Re: Outlets not allowing direct access...
  • From: Matt Neuburg <email@hidden>
  • Date: Sat, 05 Mar 2005 09:36:14 -0800

On Sat, 5 Mar 2005 12:39:45 +1100, Aaron Wallis <email@hidden>
said:

>Im having trouble getting a controller to directly communicate with a
>NSView...
>Basially, I am creating a toolbar controller that will create a toolbar
>on launch of the application.
>the toolbar class has three outlets:
> myWindow - which is bound to the apps main window
> mySearchView - which is bound to a NSView with a searchfield inside
> myActionView - another NSView with some drop downs
>
>all seems to be running good and well untill I attempt to reference the
>views and window from within Xcode.
>all the outlets are present and such, but if I were to add this line of
>code:
> NSLog ( @"Window - %s\n", myWindow );
>it returns null

Nil outlets are frequently caused by having e.g. an outlet myWindow and a
method setMyWindow:. If you have such a method, rename it. (If not, then
this answer won't help you :)

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Outlets not allowing direct access...
      • From: Justin Spahr-Summers <email@hidden>
  • Prev by Date: Re: Quickest Way to Open an NSTextAttachment in NSTextView
  • Next by Date: How to make key shortcuts and mouse click trigger controlTextDidEndEditing:
  • Previous by thread: Outlets not allowing direct access...
  • Next by thread: Re: Outlets not allowing direct access...
  • Index(es):
    • Date
    • Thread