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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to