• 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: How to build a popup menu and show this menu?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to build a popup menu and show this menu?


  • Subject: Re: How to build a popup menu and show this menu?
  • From: "Alan Smith" <email@hidden>
  • Date: Fri, 24 Feb 2006 17:20:36 -0600

After writing that last email, I thought about it quite a bit. There
is an error that I missed, unsurprisingly.

It was:

>    theOrigin.origin.x = ([theButton frame].size.width / 2);
>    theOrigin.origin.y = ([theButton frame].size.height / 2);

It should be:

theOrigin.origin.x = [theButton frame].origin.x + ([theButton
frame].size.width / 2);
theOrigin.origin.y = [theButton frame].origin.y + ([theButton
frame].size.height / 2);

It would have been pretty messy the other way.

Good luck, Alan
 _______________________________________________
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

References: 
 >Re: How to build a popup menu and show this menu? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Link & Table Cursors in NSTextView
  • Next by Date: Re: using NSMutableDictionary in place of NSDictionary
  • Previous by thread: Re: How to build a popup menu and show this menu?
  • Next by thread: how do I save my NSOutlineView items into a file?
  • Index(es):
    • Date
    • Thread