• 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: hosed IBOutlets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hosed IBOutlets


  • Subject: Re: hosed IBOutlets
  • From: Vince DeMarco <email@hidden>
  • Date: Mon, 21 Feb 2005 09:58:27 -0800


On Feb 19, 2005, at 5:10 PM, Paul Forgey wrote:

Well apparently I was inadvertently overriding a method.  I had a method in my class called setProgress: which would update the controls appropriately.  Upon more careful inspection in the debugger, I saw it was being called by the App Kit internals while unpacking the nib.  Couldn't find any documentation about that method anywhere throughout the entire class hierarchy or protocols.  Renamed it to something else and everything suddenly began working again.


Objective-C is simple, but sometimes it is too simple.



Please look at the IB FAQ from the FAQ

• How are outlets connected at runtime?

The runtime code will use the list of outlets you generated in IB at design time. For example, if you had specified an outlet called foo, IB will first investigate the target class to see if it responds to setFoo:(id). If it does, that method is called with the contents for foo. If setFoo:(id) doesn't exist, the instance variable foo itself is filled with the contents for foo.


Yes this is hard to find, but if you look under Help menu in Interface Builder there is lots of good info there.


Vince



 _______________________________________________
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

References: 
 >hosed IBOutlets (From: Paul Forgey <email@hidden>)
 >Re: hosed IBOutlets (From: Paul Forgey <email@hidden>)
 >Re: hosed IBOutlets (From: Paul Forgey <email@hidden>)

  • Prev by Date: Re: equivalent of the "X Selection" for cocoa apps?
  • Next by Date: Re: is there a sample project for an AppleScriptable Cocoa app?
  • Previous by thread: Re: hosed IBOutlets
  • Next by thread: nsmatrix (newbie)
  • Index(es):
    • Date
    • Thread