On Mar 12, 2012, at 0:55, Adam R. Maxwell wrote:
> FWIW, you might want to think about a single CPP define like
>
> #if __MAC_OS_X_VERSION_MIN_REQUIRED
> #define BDSK_IPHONE_OS 0
> #elif __IPHONE_OS_VERSION_MIN_REQUIRED
> #define BDSK_IPHONE_OS 1
> #else
> #error unknown platform
> #endif
>
> Might make things a bit more self-documenting... Anyway, I look forward to
> trying this out, though I've never done any iOS development.
That makes sense. I think I'll do the following for in Bibdesk_Prefix.pch
(following Mountain Lion's switch to "OS X"):
#if __MAC_OS_X_VERSION_MIN_REQUIRED
#define BDSK_OS_X 1
#define BDSK_IOS 0
#elif __IPHONE_OS_VERSION_MIN_REQUIRED
#define BDSK_IOS 1
#define BDSK_OS_X 0
#else
#error unknown platform
#endif
"#if BDSK_OS_X" will be used for code adding Mac-specific functionality that
can't compile on iOS and vice versa.
> I don't suppose distributed objects is available on iOS, eh? Bonjour sharing
> of your library from BibDesk might be kind of cool...though something like
> Dropbox is really necessary for linked files.
Unfortunately NSPortCoder has not been brought over, which is one of the things
I had to #define away. It seems like Apple's making a big push for iCloud-based
device synchronization now, so I could see them never bringing it to iOS.
Cheers.
-Colin
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Bibdesk-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop