Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-26 Thread Motti Shneor
Thanks Keary, I will try to focus on one simple hypothetic case, so you (and others) can address my question more specifically. Let's say we have the standard Organization-Department-Employee application with two level ordered relations, Each Document representing a distinct persistent store

Class Introspection with class_copyMethodList and class methods.

2014-08-26 Thread Alex Zavatone
I've been using the obj runtime to dump class methods, protocols, Ivars and properties for documentation, but when using class_copyMethodList I noticed that only class instance methods are returned, no class methods declared with a + are returned at all. I scanned the runtime docs and can't

Re: Class Introspection with class_copyMethodList and class methods.

2014-08-26 Thread Kevin Meaney
I think you might need objc_getMetaClass. See https://github.com/nst/RuntimeBrowser/blob/master/model/ClassDisplay.m For how it is used. Kevin On 26 Aug 2014, at 15:06, Alex Zavatone z...@mac.com wrote: I've been using the obj runtime to dump class methods, protocols, Ivars and properties

Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-26 Thread Sean McBride
On Tue, 26 Aug 2014 16:34:30 +0300, Motti Shneor said: In my document NSWindowController, there are two references, to the @property (atomic, readwrite, weak) NSManagedObject *currentDepartment; // and @property (atomic, readwrite, weak) NSManagedObject *currentEmployee; (I know this example

Re: Class Introspection with class_copyMethodList and class methods.

2014-08-26 Thread Muhammad Hussein Nasrollahpour
Recommend you to check out ObjC runtime documentation. Btw, you should use class_copyMethodList(object_getClass(yourClass), outCount); — Muhammad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-26 Thread Keary Suska
On Aug 26, 2014, at 7:34 AM, Motti Shneor su...@bezeqint.net wrote: Let's say we have the standard Organization-Department-Employee application with two level ordered relations, Each Document representing a distinct persistent store with a single Organization and its departments and

Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-26 Thread Keary Suska
On Aug 26, 2014, at 11:39 AM, Keary Suska cocoa-...@esoteritech.com wrote: * When should I do this? before, or after my calls to CoreData? You would tend to register undo action in the order they need to be *undone*, but logically if you need to make changes in response to changes made to a

Game Center Invite

2014-08-26 Thread Todd Heberlein
I’ve been doing some experiments to invite another player in Game Center on iOS devices, and the invite is failing immediately. I am using the Apple GKMatchmakerViewController to invite the players. If I choose “Play Now” on both devices, they eventually find each other. If I do “Invite

Re: Game Center Invite

2014-08-26 Thread Todd Heberlein
On Aug 26, 2014, at 4:00 PM, Todd Heberlein todd_heberl...@mac.com wrote: Do both devices have to be on the same Wi-Fi network? My workstation, where I am running the simulator, is *not* on Wi-Fi. My Cell phone (the second device) is either on Wi-Fi or LTE. If I have two physical

Re: WebView shorting me on print jobs.

2014-08-26 Thread Daryle Walker
On Aug 25, 2014, at 3:06 PM, Daryle Walker dary...@mac.com wrote: When I print from the menu command, going through the action method, a text document I have loaded in my WebView prints all its pages. When I did it through the print-files Apple event, I only got 2 pages. And that was with

Implemented -keyDown: in Yosemite NSViewController, but no class gets it

2014-08-26 Thread Jerry Krinock
I was so excited after watching WWDC Session 212 Storyboards and Controllers on OS X” that I rewrote a little app I was working on to require Yosemite. All of the new view controller and tab view controller magic works as advertised, except that my view controller subclass, supposedly now in