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

Re: Object Scope


  • Subject: Re: Object Scope
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 9 May 2007 17:01:46 -0400

On 5/9/07, Aaron Wallis <email@hidden> wrote:
I've got a class which is loaded when the Principal Class is
initiated, however the class also has a NSView and several out
IBoutlets/actions bound to it and I always seem to get an issue where
the instance that was created through initiator is in a different
scope to the *mystery* one that is created for the interface...


 Okay, first suggestion: Go back over the documentation and review
the terminology. Your description is incredibly confusing and
apparently incomplete.

 Second suggestion: It appears overall you're simply suffering a
typical cocoa "gotcha". I believe you have your class instantiated in
your nib (one instance) and are trying to create another in your code
at runtime (a second instance) and are confusing the two. If you've
instantiated your class in your nib, that particular instance != a new
one you create somewhere else.

 If you're sure the above isn't the issue and / or you feel I've
misunderstood you, you're going to have to take another stab at
describing your problem (using concise terminology).

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Object Scope
      • From: Andy Lee <email@hidden>
    • Re: Object Scope
      • From: Aaron Wallis <email@hidden>
References: 
 >Object Scope (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Re: World Builder Type Application
  • Next by Date: Re: Object Scope
  • Previous by thread: Object Scope
  • Next by thread: Re: Object Scope
  • Index(es):
    • Date
    • Thread