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

Re: hand cursors


  • Subject: Re: hand cursors
  • From: Andrew Pinski <email@hidden>
  • Date: Sat, 2 Nov 2002 23:43:26 -0800

On Saturday, Nov 2, 2002, at 07:54 US/Pacific, Finlay Dobbie wrote:

On Saturday, November 2, 2002, at 03:44 pm, email@hidden wrote:

I'm having trouble figuring out what could be easier than a function
call with a single argument.

Being able to do it without adding an #include, maybe and converting a NSPoint to a CGPoint.

Good god, adding an #include? That's a whole extra line of code. What an effort.

And as for NSPoint<->CGPoint, I have a vague recollection that they're actually laid out the same way, so you can do
NSPoint myNSPoint = *(NSPoint *)(&myCGPoint); or similar

Even though they are laid out the same you cannot do that as this violates ISO/ANSI C aliasing rules.
Apple needs to fix it so that they are really the same type.
I will file a bug Monday or look to see if there is one and make sure
I add my comments about the "workaround" when I get into work on Monday.

Thanks,
Andrew Pinski
_______________________________________________
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: 
 >Re: hand cursors (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: Re: NSSteppers... oh and NSColorWell's
  • Next by Date: advice on filtering TreeNode objects
  • Previous by thread: Re: hand cursors
  • Next by thread: Re: hand cursors
  • Index(es):
    • Date
    • Thread