• 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: Casting NSRect to CGRect?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Casting NSRect to CGRect?


  • Subject: Re: Casting NSRect to CGRect?
  • From: Andrew Pinski <email@hidden>
  • Date: Thu, 17 Jan 2002 19:40:12 -0500

Some time in the future Apple will have them the same type but right
now they are the different structs which you can cast to, I read this
somewhere but I cannot remember where.


Thanks,
Andrew Pinski
On Thursday, January 17, 2002, at 07:22 , Pete Carss wrote:

I have a DrawRect method in a custom view - which takes an NSRect - as it should. I want to use this data in a CG call that expects a CGRect - I delved into the docs and the structs that define them are the same - is there an easy way to get from one to the other?

Pete


References: 
 >Casting NSRect to CGRect? (From: Pete Carss <email@hidden>)

  • Prev by Date: Re: Casting NSRect to CGRect?
  • Next by Date: Wrap NSTableView text (started as: NSTableView truncate text)
  • Previous by thread: Re: Casting NSRect to CGRect?
  • Next by thread: opening an open document
  • Index(es):
    • Date
    • Thread