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

Re: Setter Getter on NSImageVIew / UIImageView?


  • Subject: Re: Setter Getter on NSImageVIew / UIImageView?
  • From: Graham Cox <email@hidden>
  • Date: Thu, 25 Jun 2009 14:21:08 +1000


On 24/06/2009, at 1:45 PM, Chunk 1978 wrote:

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?


Since a property of an image view is its image, it's natural to have setters and getters for that property. What a client code might use them for is none of its business.

It's very common to change the image in an image view, for example a UI might show an icon or preview of some object that is selected and the selection can change... So everything you've written after "assuming the..." is just reflecting your personal limited use of NSImageView that has no real bearing on the design of the object.

--Graham


_______________________________________________

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: 
 >Setter Getter on NSImageVIew / UIImageView? (From: Chunk 1978 <email@hidden>)

  • Prev by Date: RE: GC pros and cons
  • Next by Date: Re: Hide Interface Builder Object?
  • Previous by thread: Setter Getter on NSImageVIew / UIImageView?
  • Next by thread: Re: Setter Getter on NSImageVIew / UIImageView?
  • Index(es):
    • Date
    • Thread