• 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: Spoiled by Java IDEs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spoiled by Java IDEs


  • Subject: Re: Spoiled by Java IDEs
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 18 Jul 2008 18:38:46 -0500

On Jul 18, 2008, at 9:18 AM, Graham Perks wrote:

Even better, I write a method, add it to the .h for me.

Except not every method should be part of the class's interface.


If I need a property added to my class, why do I need to hand-write THREE lines (!? baffles me how complex a simple property is. C# buggered that up too.) There should be a simple dialog asking type, name, and any odd options like retain or nonatomic, which ideally it would infer from the type. e..g if it's an int make the options assign & nonatomic. But no, I have to enter three lines across two files, two of which contain duplicated type information.

Except the instance variable's type need not be the same as the property's. For example, your class may expose a to-many relationship using an read-only NSArray* property. It being an immutable type, clients are not allowed to change it. However, your class may need to change the relationship over the lifetime of an instance, so the property would use an NSMutableArray* as its backing store. That's just one example, of course. Properties may have many possible implementations, some of which don't involve any instance variable backing store at all.


Regards,
Ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Spoiled by Java IDEs
      • From: Graham Perks <email@hidden>
References: 
 >Spoiled by Java IDEs (From: James Boutcher <email@hidden>)
 >Re: Spoiled by Java IDEs (From: Graham Perks <email@hidden>)

  • Prev by Date: Re: Exception
  • Next by Date: Re: Header comment upon creation of new file
  • Previous by thread: Re: Spoiled by Java IDEs
  • Next by thread: Re: Spoiled by Java IDEs
  • Index(es):
    • Date
    • Thread