• 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
Setter Getter on NSImageVIew / UIImageView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setter Getter on NSImageVIew / UIImageView?


  • Subject: Setter Getter on NSImageVIew / UIImageView?
  • From: Chunk 1978 <email@hidden>
  • Date: Tue, 23 Jun 2009 23:45:04 -0400

i've seen code where this is written:

-=-=-=-
@property (nonatomic, retain) UIImageView *image;
...
@synthisize image;
...
[image release];    //in dealloc method
-=-=-=-

aren't setters/getters methods used only for objects that need to have
their value changed?  assuming the UIImageView in the above code
always maintains the same image throughout the program, are setter and
getters still required?  perhaps the above code was written so the
user could swap images within the same UIImageView, or animate the
view?  humm... would you even need to have setter and getters for
animation?
_______________________________________________

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: Setter Getter on NSImageVIew / UIImageView?
      • From: Michael Ash <email@hidden>
    • Re: Setter Getter on NSImageVIew / UIImageView?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: display Mac id
  • Next by Date: Application Support Folder
  • Previous by thread: Re: Quick DO endian question
  • Next by thread: Re: Setter Getter on NSImageVIew / UIImageView?
  • Index(es):
    • Date
    • Thread