Le 23/05/08 à 15:26, Ilan Volow [EMAIL PROTECTED] a écrit :
IMHO Objective-C 2.0 looks like Apple's attempt to make Objective-C
competitive with existing scripting languages, given the addition of
the dot syntax for accessors and garbage collection changes.
No scripting languages, maybe Java
denial of anything. Lowering the barriers to entry doesn't necessarily
serve them or their consumers better, it serves new developers who see
the iPhone as an opportunity but, obviously, there is no shortage of
people wanting to take advantage of that opportunity, so I'm not sure
Good
Well
Something like this is standard :
- (id)init
{
if (!(self = [super init]))
return nil;
cityArray = [[NSArray alloc] initWithObjects:
@New York
...,
nil];
return self;
}
would
with an empty NSArray (not very useful, since you can't add items to
an NSArray). Then, you leak that allocated memory by setting cityArray
to an autoreleased NSArray
In fact it is not leaking, it is just creating an object for nothing, it will
be released by the autorelease pool, than no
Hi,
Sincerely, I am coding under windows with Win32/Qt/Corba/Lua and others for a
living, I use MSDN every day, I read their example very often.
Well Qt has a very usable API and a good documentation and good examples and we
have access to the sources...
But on the Win32/Microsoft front, I