On 5 Oct 2010, at 15:18:06, Remco Poelstra wrote:

> Op 5-10-2010 16:11, Dave DeLong schreef:
>> Then you have much bigger problems.
> 
> I already thought so :). But I noticed that [NSArray arrayWithCapacity] also 
> never returns nil. But I can create a very large array, and I can make it 
> bigger with addObjects:atIndexes: and that function returns void, so always 
> succeeds. How is that possible?
> 

Because it throws exceptions if anything bad happens at runtime (i.e out of 
memory, invalid parameters etc)

Google for NSException

Matt
Trend Micro EMEA (GB) Limited, a Limited Liability Company. Registered in 
England No. 06766734. 
Registered office: Eversheds House, 70 Great Bridgewater Street, Manchester, M1 
5ES
Trend Micro (UK) Limited, a Limited Liability Company. Registered in England 
No. 3698292. 
Registered Office: Pacific House, Third Avenue, Globe Business Park, Marlow, 
Bucks, SL7 1YL 
Telephone: +44 1628 400500 Facsimile: +44 1628 400511

This communication and any accompanying files and attachments are intended only 
for the recipient to whom it is addressed. 
If you have received this communication in error, please immediately notify the 
Sender. You are further notified that any disclosure, 
copying or other distribution of this communication, including its attachments 
is strictly prohibited.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to