• 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: Instance an from an NSString Class name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instance an from an NSString Class name


  • Subject: Re: Instance an from an NSString Class name
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 21 Sep 2010 21:49:44 -0700

On 2010 Sep 21, at 21:21, email@hidden wrote:
> However, must I retain [sender draggedImage] so the code becomes:
>
> id thisObstacle = [[obstacle alloc] initWithImage:[[sender draggedImage] retain] andLocation:[sender draggingLocation]];

No.  Your 'obstacle' should retain its 'image' as an instance variable if it needs to.

_______________________________________________

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

References: 
 >Instance an from an NSString Class name (From: email@hidden)
 >Re: Instance an from an NSString Class name (From: "Stephen J. Butler" <email@hidden>)
 >Re: Instance an from an NSString Class name (From: email@hidden)

  • Prev by Date: Re: Instance an from an NSString Class name
  • Next by Date: Re: Instance an from an NSString Class name
  • Previous by thread: Re: Instance an from an NSString Class name
  • Next by thread: Re: Instance an from an NSString Class name
  • Index(es):
    • Date
    • Thread