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

Outlets not allowing direct access...


  • Subject: Outlets not allowing direct access...
  • From: Aaron Wallis <email@hidden>
  • Date: Sat, 5 Mar 2005 12:39:45 +1100

Hi there,

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, same happens with the views... however, if I pass the view and window from the main myDocument.m class through the function call it works fine...


Any ideas on why the class can't bind to the views at run time?
I can post more source code if you like...

Cheers

_______________________________________________
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


  • Prev by Date: Re: newbie & calling functions from other classes
  • Next by Date: Re: Trying to capture standard error from an NSTask
  • Previous by thread: Re: Making efficient use of tracking rects
  • Next by thread: Re: Outlets not allowing direct access...
  • Index(es):
    • Date
    • Thread