• 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: predefined macro iOS vs OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: predefined macro iOS vs OS X


  • Subject: Re: predefined macro iOS vs OS X
  • From: Marcel Weiher <email@hidden>
  • Date: Sun, 18 Aug 2013 12:28:18 +0200

On Aug 17, 2013, at 19:01 , Jean-Daniel Dupas <email@hidden> wrote:

> Le 17 août 2013 à 17:55, Marcel Weiher <email@hidden> a écrit :
>> However…if you care as much about dependency management as I do (and chances are you don’t), and don’t have a direct dependency on CoreGraphics in that code (and chances are you do), then this is slightly stomach-churning, in addition to pragmatic and effective.
>
> You don't have to add explicit dependency to anything as NSGeometry.h already does that for you.
> Importing Foundation.h is enough to use CGRect on both OS X and iOS.

That would be awesome and would mean I no longer need my PhoneGeometry.h hack.

Alas, I just checked and did not find NSGeometry.h in the Foundation headers on iOS (and didn’t find NSRect or NSPoint anywhere either).  Maybe I am missing something?

Cheers,

Marcel

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: predefined macro iOS vs OS X
      • From: Kyle Sluder <email@hidden>
References: 
 >predefined macro iOS vs OS X (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: predefined macro iOS vs OS X (From: Rick Mann <email@hidden>)
 >Re: predefined macro iOS vs OS X (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: predefined macro iOS vs OS X (From: Kyle Sluder <email@hidden>)
 >Re: predefined macro iOS vs OS X (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: predefined macro iOS vs OS X (From: Kyle Sluder <email@hidden>)
 >Re: predefined macro iOS vs OS X (From: Marcel Weiher <email@hidden>)
 >Re: predefined macro iOS vs OS X (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: UITableViewCell delete button disappearing when tapped
  • Next by Date: How to detect a Retina Mac
  • Previous by thread: Re: predefined macro iOS vs OS X
  • Next by thread: Re: predefined macro iOS vs OS X
  • Index(es):
    • Date
    • Thread