is a repetitive use of imageNamed: bad?
is a repetitive use of imageNamed: bad?
- Subject: is a repetitive use of imageNamed: bad?
- From: Olivier Lanctôt <email@hidden>
- Date: Thu, 24 Nov 2005 12:25:29 -0500
Hi list,
I want to ask a simple question.
Imagine a view that always draws a background, which is a NSImage.
Is it bad to always invoke imageNamed: every time -drawRect: is called?
Yes, it's one more objc message, but is there internal caching that
prevents NSImage from accessing the HD again and again?
Is it better to declare the image as an ivar or a static on the file
and init it at -init?
Thanks!
--
Olivier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden