Re: NIB bug? Outlets = nil
Re: NIB bug? Outlets = nil
- Subject: Re: NIB bug? Outlets = nil
- From: Matt Neuburg <email@hidden>
- Date: Wed, 26 Sep 2007 11:33:40 -0700
- Thread-topic: NIB bug? Outlets = nil
On Wed, 26 Sep 2007 11:39:24 +1000, Loukas Kalenderidis
<email@hidden> said:
>Hi guys,
>
>I've had this problem on a number of occasions where outlets in a NIB
>file that are connected correctly in IB are nil when the NIB is
>loaded. What I've found in the past is that if I change the name of
>the outlet in the header file, read it back into IB and reconnect the
>outlet it works fine. If I change the name back it stops working
>again. It's as though the outlet in the NIB is corrupt or something.
>Has anybody else seen this problem?
That's a FAQ, and has been answered a gazillion times, so check the
archives. Example:
http://www.cocoabuilder.com/archive/message/cocoa/2004/4/6/103459
The problem is that you've got a setter (setXXX:) whose name is the same as
the outlet (XXX). Don't Do That. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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