• 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
Outlet from Different Implementation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Outlet from Different Implementation?


  • Subject: Outlet from Different Implementation?
  • From: Jeshua Lacock <email@hidden>
  • Date: Mon, 15 Sep 2008 20:19:54 -0600



Greetings,

Is it possible to get the value of an outlet from a different @implementation?

For instance, if I have the two following interfaces and the outlets have been connected in IB:

@interface MyGLView : NSOpenGLView
{
   NSTimer *pTimer;
}
@end

@interface MyContent : NSView
{
	IBOutlet id MyOutlet;
}
@end


I am trying to get the value of the MyOutlet outlet (from MyContent implementation) from a function in the MyGLView implementation.


I thought something like this would work (but doesn't):

	float foo = [[MyContent MyOutlet] floatValue];


Any information would be greatly appreciated.



Thanks,

Jeshua Lacock
Founder/Programmer
3DTOPO Incorporated
<http://3DTOPO.com>
Phone: 877.240.1364

_______________________________________________

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: Outlet from Different Implementation?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: NSWindowController
  • Next by Date: Re: Outlet from Different Implementation?
  • Previous by thread: Re: NSPopupButton Bindings Content Objects is disabled
  • Next by thread: Re: Outlet from Different Implementation?
  • Index(es):
    • Date
    • Thread