• 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
addTrackingRect and setAutoresizingMask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

addTrackingRect and setAutoresizingMask


  • Subject: addTrackingRect and setAutoresizingMask
  • From: Lorenzo <email@hidden>
  • Date: Sat, 23 Aug 2003 22:56:43 +0200

Hi list,
in a subclass of NSButton I added a TrackingRect

[self addTrackingRect:[self bounds] owner:self userData:nil
assumeInside:NO];

to let the button detect the mouseEnter.
It works, but since the button is anchored at the right side of the window
(setAutoresizingMask:), when I resize the window, the tracking rect remains
at the original point (anchored to the left side of the window). Instead I
would like it follows the button. Should I remove and add again the tracking
rect at any windowDidResize: ?


Any idea?


Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.

  • Prev by Date: WWDC DVDs
  • Next by Date: NSApplicationName not always the same name the rest of the system recognizes?
  • Previous by thread: Re: WWDC DVDs
  • Next by thread: NSApplicationName not always the same name the rest of the system recognizes?
  • Index(es):
    • Date
    • Thread