• 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: "John C. Randolph" <email@hidden>
  • Date: Sun, 20 Feb 2005 02:36:49 -0800


On Feb 20, 2005, at 12:00 AM, Paul Forgey wrote:

Somebody else kindly pointed that out off the list.

Whoops! I'd intended to reply on the list, but I hit the "reply" instead of the "reply-all" button.


Apparently the nib unarchiver tries to use accessor functions, and so my IBOutlet progress and method setProgress: were clashing. That also explains the weird messages regarding the NSProgressIndicator while it was loading. My setProgress: method took an NSString * argument!

Anyhow, what I'd told Paul was:

Something else that might have tripped you up here, is that when unarchiving, the AppKit will use accessor methods if possible. So if you have an outlet "foo", and there's a method named "-setFoo:", the unarchiver will send a -setFoo: message rather than writing to the "foo" ivar directly. This is a legacy from the days when the accessor methods were manadatory, and they were the only way that unarchiving could make connections called for in the .nib file.

-jcr


John C. Randolph <email@hidden> (408) 974-8819 Sr. Cocoa Software Engineer, Apple Worldwide Developer Relations http://developer.apple.com/cocoa/index.html



_______________________________________________
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: Angela Brett <email@hidden>)
 >Re: hosed IBOutlets (From: Paul Forgey <email@hidden>)

  • Prev by Date: Memory management with archives
  • Next by Date: Re: NSWindow delegate handling keyboard events
  • Previous by thread: Re: hosed IBOutlets
  • Next by thread: Re: hosed IBOutlets
  • Index(es):
    • Date
    • Thread