Re: Spoiled by Java IDEs
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