Message from iOS to watchOS

2016-12-02 Thread Gerriet M. Denkmann
I have a pair of apps: iOS + watchOS. The iOS app would like (e.g. when the user taps a button) to send some (short) info to the watchOS app. The watchOS app probably should show something like a Notification Controller Scene: Message from iOS (title) Something was done

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Pascal Bourguignon
> On 3 Dec 2016, at 00:40, Jens Alfke wrote: > > >> On Dec 2, 2016, at 2:17 PM, Andreas Falkenhahn > > wrote: >> >> Well, just because apps that use undocumented features aren't rejected from >> the >> app store

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Pascal Bourguignon
> On 2 Dec 2016, at 23:17, Andreas Falkenhahn wrote: > > On 02.12.2016 at 22:55 Pascal Bourguignon wrote: > >> You would just embed the framework, without linking it. > > I'm not very familiar with the latest Xcode so does this mean I should add > my framework to

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Jens Alfke
> On Dec 2, 2016, at 2:17 PM, Andreas Falkenhahn wrote: > > Well, just because apps that use undocumented features aren't rejected from > the > app store doesn't make it official for me. dlopen is hardly undocumented; it’s part of the core BSD Unix library. It’s got a

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Gary L. Wade
Documentation on Apple’s site is sometimes difficult to peruse (a whole other thread and, arguably, always difficult nowadays), but I can guarantee you that it has been documented somewhere and is supported. I’ve been involved in the process of using this process to load one version of a

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Andreas Falkenhahn
On 02.12.2016 at 22:55 Pascal Bourguignon wrote: > Yes, it’s “official”. > I’ve read the document about what is allowed and rejected for the > AppStore, and this is not rejected. Well, just because apps that use undocumented features aren't rejected from the app store doesn't make it official

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Pascal Bourguignon
> On 2 Dec 2016, at 15:37, Andreas Falkenhahn wrote: > > On 02.12.2016 at 07:57 Pascal Bourguignon wrote: > >> Yes, dlopen is supported in iOS 8 and following. > > Is this support official or does it just work by chance and might stop > working in the > future? I've

Re: Documentation Workflow

2016-12-02 Thread Richard Charles
> On Dec 2, 2016, at 11:34 AM, Slipp Douglas Thompson > wrote: > > Alternatively, there's always archive.org's Wayback Machine. Very helpful. I did not know this existed. Thanks so much for the example and instructions. --Richard Charles

Re: Drag and drop on table view

2016-12-02 Thread João Varela
> > I am still not sure if I am doing this the right way (extending NSTableView) > because Xcode says "Subclassing NSTableView is usually not necessary”. > > Jan E. Yes, it is usually not necessary and I would go so far as saying that you shouldn’t. I normally create a new delegate class and

Re: Documentation Workflow

2016-12-02 Thread Gary L. Wade
I bet the documentation has gotten leaner since Apple's developers have been dog-fooding the Xcode feature, Add Documentation, available under the Editor:Structure men path, and only using what’s in there. Just kidding…but maybe not! -- Gary L. Wade http://www.garywade.com/

Re: Documentation Workflow

2016-12-02 Thread Slipp Douglas Thompson
Alternatively, there's always archive.org's Wayback Machine. For example, the Core Data Programming Guide from 2014-07-03 is available right here:

Re: Drag and drop on table view

2016-12-02 Thread J.E. Schotsman
> On 02 Dec 2016, at 18:19, Jens Alfke wrote: > > NSTableView has a whole set of delegate calls for implementing drag & drop; > you should use those instead. For example > > - (NSDragOperation)tableView:(NSTableView*)tv > validateDrop:(id )info >

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Andreas Falkenhahn
On 02.12.2016 at 18:21 Jens Alfke wrote: > Don’t build a framework and don’t link the app with it. Just build > a dynamic library and export the symbols for the entry points. > (Exactly the same way as you do for macOS.) And what about code signing the dynamic library? -- Best regards,

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Jens Alfke
> On Dec 2, 2016, at 6:37 AM, Andreas Falkenhahn wrote: > > So how does that work in practice? Should I create a Cocoa Touch Framework, > code sign > it, include it in the "Embedded binaries" section in Xcode in my project and > select > "Optional" for that framework

Re: Drag and drop on table view

2016-12-02 Thread Jens Alfke
> On Dec 2, 2016, at 5:36 AM, J.E. Schotsman wrote: > > I am still not sure if I am doing this the right way (extending NSTableView) > because Xcode says "Subclassing NSTableView is usually not necessary”. NSTableView has a whole set of delegate calls for implementing drag

Re: Accessing the bundle of the call-site

2016-12-02 Thread Jens Alfke
> On Dec 1, 2016, at 10:21 PM, Rick Aurbach wrote: > > Thank you for confirming my suspicions. I know that Bundle won’t help. What I > was hoping for was a Swift runtime call that returned the current module name. Something equivalent to [NSBundle bundleForClass: [self

Re: Documentation Workflow

2016-12-02 Thread 2551phil
> On 2 Dec 2016, at 23:25, Richard Charles wrote: > > Somebody needs to start an online repository of older Apple developer > documentation in pdf format. I did do exactly that for the legacy AppleScript stuff[1] when it started disappearing, but it’d be a bit of a

Re: Documentation Workflow

2016-12-02 Thread Richard Charles
> On Nov 12, 2016, at 10:41 AM, Richard Charles wrote: > > Why is the documentation team going down this bizarre path? Do they really > think we will be programming on iPads some day? I hate to beat a dead horse here but there really does seem to be an effort underway

Re: Migrating shared library plugins to Cocoa Touch Frameworks

2016-12-02 Thread Andreas Falkenhahn
On 02.12.2016 at 07:57 Pascal Bourguignon wrote: > Yes, dlopen is supported in iOS 8 and following. Is this support official or does it just work by chance and might stop working in the future? I've tried to find an official word from Apple concerning dlopen() on iOS but I haven't been

Re: Drag and drop on table view

2016-12-02 Thread J.E. Schotsman
Posted too soon. After implementing draggingUpdated it works :-) I am still not sure if I am doing this the right way (extending NSTableView) because Xcode says "Subclassing NSTableView is usually not necessary”. Jan E. ___ Cocoa-dev mailing list

Drag and drop on table view

2016-12-02 Thread J.E. Schotsman
Hello, Asking the pundits for help again... So far I am unsuccesful trying to implement drag & drop . I want to be able to drag a file or folder on a table view and process the file after that. On startup I do jobList.registerForDraggedTypes( [kUTTypeFileURL as String] ) jobList.setDropRow(