Re: Could not connect the action to target of class
Re: Could not connect the action to target of class
- Subject: Re: Could not connect the action to target of class
- From: Sherm Pendley <email@hidden>
- Date: Fri, 11 Mar 2005 12:01:02 -0500
On Mar 10, 2005, at 8:31 PM, James McConnell wrote:
Because File's Owner's Custom Class is usually MyDocument in a
doc-based app
by default. Chances are it's not liking the fact that you've
"reassigned"
File's Owner.
Not so much that it doesn't like it - it just ignores it. Defining the
type of File's Owner in IB is only for advisory purposes, so that IB
knows what outlets and actions to let you connect to.
The *real* file's owner is specified as an argument when the Nib is
loaded with the +loadNibNamed:owner: (or similar) method. That object
is what it is, regardless of what you told IB it was going to be. So in
a document-based app, it's always your document class, even if you've
told IB it was going to be something else.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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