• 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
question about "read-only" rule for Memory Management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

question about "read-only" rule for Memory Management


  • Subject: question about "read-only" rule for Memory Management
  • From: Philip Mobley <email@hidden>
  • Date: Mon, 26 Apr 2010 18:57:27 -0700

Assume that an array of images is loaded at the start of the app.

There are a number of views which will be displaying multiple "copies" of the image, but they will be accessing the image array as a read-only property, and I do not plan to have these views adjust the reference count for each image.

Question:  is the BELOW method named appropriately?

- (UIImage *) getImageWithTag:(NSString *)tag;

_______________________________________________

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: question about "read-only" rule for Memory Management
      • From: Kyle Sluder <email@hidden>
    • Re: question about "read-only" rule for Memory Management
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSApplicationMain question
  • Next by Date: Re: NSApplicationMain question
  • Previous by thread: Re: -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (NSDictionaryController)
  • Next by thread: Re: question about "read-only" rule for Memory Management
  • Index(es):
    • Date
    • Thread