• 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: resizing troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resizing troubles


  • Subject: Re: resizing troubles
  • From: John Randolph <email@hidden>
  • Date: Tue, 13 Jan 2004 15:32:22 -0800

On Jan 12, 2004, at 1:21 PM, Benjamin Salanki wrote:

- (BOOL)postsFrameChangedNotifications
{
return YES;
}

This is probably the source of your problem. Instead of overriding -postsFrameChangedNotifications, send your view a - setPostsFrameChangedNotifications:YES message. When the view is resizing, it's going to check the ivar directly instead of using the accessor.

Looking through the rest of the code you posted, I can see many other examples of you overriding methods instead of simply setting the appropriate state.

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.

References: 
 >resizing troubles (From: Benjámin Salánki <email@hidden>)

  • Prev by Date: Re: applescript objectSpecifier error
  • Next by Date: *** malloc[]: error for object: Double free: How to Debug?
  • Previous by thread: resizing troubles
  • Next by thread: Problem with NSTimer in Cocoa Java
  • Index(es):
    • Date
    • Thread