• 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
Re: Could not connect the action to target of class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Could not connect the action to target of class
      • From: Hamish Allan <email@hidden>
References: 
 >Re: Could not connect the action to target of class (From: James McConnell <email@hidden>)

  • Prev by Date: Dynamic inspectors
  • Next by Date: Re: Cocoa from C++ (dont want to mix it)
  • Previous by thread: Re: Could not connect the action to target of class
  • Next by thread: Re: Could not connect the action to target of class
  • Index(es):
    • Date
    • Thread