• 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: NIB bug? Outlets = nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NIB bug? Outlets = nil
      • From: Loukas Kalenderidis <email@hidden>
  • Prev by Date: Re: Qustion about possibly bad advice in NSView documentation
  • Next by Date: Re: setState not working as expected
  • Previous by thread: Re: NIB bug? Outlets = nil
  • Next by thread: Re: NIB bug? Outlets = nil
  • Index(es):
    • Date
    • Thread