Re: Dealing with an @available warning

2018-10-23 Thread James Walker
On 10/23/18 5:36 PM, Saagar Jha wrote: Saagar Jha On Oct 23, 2018, at 17:15, James Walker > wrote: On 10/23/18 3:12 PM, Saagar Jha wrote: What build command are you using? I’m not seeing any warnings with this code, compiled with clang -x objective-c

Re: Dealing with an @available warning

2018-10-23 Thread Saagar Jha
Saagar Jha > On Oct 23, 2018, at 17:15, James Walker wrote: > > On 10/23/18 3:12 PM, Saagar Jha wrote: >> What build command are you using? I’m not seeing any warnings with this >> code, compiled with clang -x objective-c -framework AppKit >> -Wunguarded-availability

Re: Dealing with an @available warning

2018-10-23 Thread James Walker
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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:

Re: Dealing with an @available warning

2018-10-23 Thread James Walker
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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:

Re: Dealing with an @available warning

2018-10-23 Thread Greg Parker
> On Oct 23, 2018, at 3:01 PM, James Walker wrote: > > I had some code like this > > pInfo.orientation = NSPaperOrientationPortrait; > > where pInfo is of type NSPrintInfo*. When compiling with > -Wunguarded-availability, I got a warning saying that > NSPaperOrientationPortrait is only

Re: Dealing with an @available warning

2018-10-23 Thread Saagar Jha
What build command are you using? I’m not seeing any warnings with this code, compiled with clang -x objective-c -framework AppKit -Wunguarded-availability -mmacosx-version-min=10.9 - : #import int main() { NSPrintInfo *info; if (@available(macOS 10.9, *)) {

Dealing with an @available warning

2018-10-23 Thread James Walker
I had some code like this pInfo.orientation = NSPaperOrientationPortrait; where pInfo is of type NSPrintInfo*. When compiling with -Wunguarded-availability, I got a warning saying that NSPaperOrientationPortrait is only available on macOS 10.9 and later. So I wanted to change it to: if

Re: XPC Question

2018-10-23 Thread Sandor Szatmari
> On Oct 23, 2018, at 02:56, Uli Kusterer wrote: > >> On 18. Sep 2018, at 19:25, Alastair Houghton >> wrote: >> Well, Cocoa has Distributed Objects, which you could use for this purpose. >> DO has some interesting behaviour (in particular, watch out - it can throw >> exceptions, even when

Re: Sharing Files Between My Apps via iCloud

2018-10-23 Thread Uli Kusterer
AFAIK the .icloud files are placeholders iCloud creates for Finder to show while a file is still downloading (there will be a little indicator next to it in Finder list view showing it's still downloading. You should probably just ignore those files and wait until iCloud has finished

Re: XPC Question

2018-10-23 Thread Uli Kusterer
On 18. Sep 2018, at 19:25, Alastair Houghton wrote: > Well, Cocoa has Distributed Objects, which you could use for this purpose. > DO has some interesting behaviour (in particular, watch out - it can throw > exceptions, even when calling methods that don’t normally do so), but it does > let