• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Looking for Cocoa source code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Looking for Cocoa source code
      • From: Lance Bland <email@hidden>
References: 
 >Re: Looking for Cocoa source code (From: Lance Bland <email@hidden>)

  • Prev by Date: Re: Looking for Cocoa source code
  • Next by Date: Re: Code Completion
  • Previous by thread: Re: Looking for Cocoa source code
  • Next by thread: Re: Looking for Cocoa source code
  • Index(es):
    • Date
    • Thread