Re: Looking for Cocoa source code
Re: Looking for Cocoa source code
- Subject: Re: Looking for Cocoa source code
- From: Scott Anguish <email@hidden>
- Date: Thu, 6 Mar 2003 15:21:11 -0500
If you need to know something, and it isn't documented, file a bug. It
should be documented if you need to know.
On Thursday, March 6, 2003, at 02:09 PM, Lance Bland wrote:
If you write a subclass of NSView and think you need to overload these
methods:
- (void)setFrameOrigin:(NSPoint)newOrigin;
- (void)setFrameSize:(NSSize)newSize;
- (void)setFrame:(NSRect)frameRect;
which one do you overload? all of them?
It might help to know that setFrame: calls setFrameSize: and
setFrameOrigin: to do its job.
Thus you need to overload setFrameSize: and setFrameOrigin: only. And
if you also overload setFrame: then you might be screwed because you
might do some things twice.
It pays to know the implementation details.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.