Outlet from Different Implementation?
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