Basic info about outlets
Basic info about outlets
- Subject: Basic info about outlets
- From: "John Love" <email@hidden>
- Date: Thu, 15 May 2008 07:30:09 -0400
I *think* I understand about outlets and actions .. but now I am not so
sure.
Specifically, if I set (NSWindow *)documentWindow as an Outlet in my main
nib and I declare in MyDocument.h file:
interface MyDocument:NSDocument {
IBOutlet NSWindow *documentWindow;
}
...
- (void) someMethod:documentWindow;
and in MyDocument.m file:
- (void) someMethod {
// some operation that accesses a property of documentWindow
}
Okay, documentWindow is typed as a outlet in the main nib and in the
interface,.h, file ... and I have control-dragged from the FileOwner to the
title bar of the Window, selecting "documentWindow" as the Outlet. But,
just exactly HOW does the actual documentWindow object get passed so that
someMethod can look at one of its properties?
This question is oriented to "behind the scenes".
Thanks in advance>
John Love
_______________________________________________
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