Delays in awaking iOS app

2014-01-29 Thread Gerriet M. Denkmann
I have an app with a button. I start the app, then put the iPhone to sleep. I wake the phone up and press the button repeatedly, until something happens. There is an NSLog() in applicationWillEnterForeground: and in the action method of the button. The time difference between these two is 1.1 ..

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Michael Starke
As far as I know (and I use this in my application) if you use the NSUndoManager prepareWithInvocationTarget: the proxy that wraps the NSInvocation retains the target. Thus using a [[undoManager prepareWithInovationTarget:myObject] remove] call should ensure the object lives as long as the und

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Keary Suska
On Jan 29, 2014, at 8:30 AM, Matthew LeRoy wrote: > I *think* the right approach here is to not delete/dealloc the model objects > when their corresponding records are removed/deleted, but instead just remove > the objects from the collection of “live” objects and hold onto them > somewhere els

Preserving undo actions on deleted targets

2014-01-29 Thread Matthew LeRoy
I’m wondering if someone can provide some guidance or best practices on how I might preserve actions on the undo/redo stack when the target of those actions is deleted? For example, say I have an application that allows me to add and remove records to and from a list — employee records, items i

Xcode 5 & Obj-C++

2014-01-29 Thread Peter Teeson
I have a project in which I want to take advantage of the C++ Standard library (primarily because of the container classes - including the special ones). FWIW the project has to traverse a directed acyclic graph (yes I know about the boost lib). For the rest of the project Obj-C and Cocoa is suf

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Abdul Sowayan
Peter, On Jan 29, 2014, at 12:02 PM, Peter Teeson mailto:ptee...@icloud.com>> wrote: I have a project in which I want to take advantage of the C++ Standard library (primarily because of the container classes - including the special ones). FWIW the project has to traverse a directed acyclic graph

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Scott Ribe
On Jan 29, 2014, at 10:02 AM, Peter Teeson wrote: > But other than a command line template, which is for C++, there does not seem > to be one for ObjC++. Yep. Never has been. > Are there any current docs that my search didn't find and that you can point > me to? > Or advice you can offer to h

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Jerry Krinock
Matt, you have written a good essay illustrating the many twists, turns and corners you get into when trying to track Undo yourself. Redo adds even more complexity. On 2014 Jan 29, at 07:30, Matthew LeRoy wrote: > Am I on the right track, or is there some other recommended pattern here? My r

Customizing a Mac Installer Package

2014-01-29 Thread Bradley O'Hearne
Hello, I am working on an app which for the present version, must be installed via an installer package. The next version will be a Mac App Store app, so this won’t be a concern then. But for the time being, the app has its own package installer. In Xcode (current version), when you create a

Re: Layer needs display if presentation layer moves?

2014-01-29 Thread Seth Willits
It was an endless series of compounding errors yesterday for some reason, but I finally managed to get it to work. In retrospect it is easy, but not easily discoverable. Here's the finished demo project: http://www.sethwillits.com/temp/CATest_PresentationLayerTracking.zip In this project a

Re: Layer needs display if presentation layer moves?

2014-01-29 Thread Kyle Sluder
On Wed, Jan 29, 2014, at 11:44 AM, Seth Willits wrote: > > - ConnectionsLayer has a private property: @property int > nodePositionsDidChange; > - +needsDisplayForKey: returns YES for "nodePositionsDidChange" (calls > super for anything else) > - noteNodePositionsChanged calls: > [self addAni

Re: Layer needs display if presentation layer moves?

2014-01-29 Thread Kyle Sluder
On Wed, Jan 29, 2014, at 12:14 PM, Kyle Sluder wrote: > [connectionsAnimGroup addAnimation:[MyConnectionsAnimation > animationOfLineNamed:sublayer.name > fromPoint:oldConnectionEndpoint toPoint:newConnectionEndpoint]; > } > > // The connections layer returns YES for > +needsDis

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 9:02 AM, Peter Teeson wrote: > I understand that the file extension needs to be .mm to mix Obj-C and C++. > But other than a command line template, which is for C++, there does not seem > to be one for ObjC++. It's honestly not any different. You're writing Objective-C code

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Keary Suska
On Jan 29, 2014, at 10:27 AM, Jerry Krinock wrote: > On 2014 Jan 29, at 08:07, Keary Suska wrote: > >> In my experience, manipulating NSUndoManager's stack is an exercise in >> frustration, as NSUndoManager's gets itself into an inconsistent state. IMHO >> this is largely due to the opacity o

Re: Delays in awaking iOS app

2014-01-29 Thread Rick Mann
I've seen behaviors like this with other apps, i.e. the Google Hangouts app. The keyboard will be active from a chat, and I'll leave the app. Then I'll get a notification that a message came in, go to the app, and there's some period of time before the keyboard becomes responsive. I think I onl

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Matthew LeRoy
On Jan 29, 2014, at 11:07 AM, Keary Suska wrote: > As the object of an action the "deleted" object should be retained by > NSUndoManager, so you don't have to track it yourself. *light bulb* For whatever reason, I had it in my head that neither the target of the undo action nor the parameter(s

Re: Xcode 5 & Obj-C++

2014-01-29 Thread koko
On Jan 29, 2014, at 1:48 PM, Jens Alfke wrote: > > On Jan 29, 2014, at 9:02 AM, Peter Teeson wrote: > >> I understand that the file extension needs to be .mm to mix Obj-C and C++. >> But other than a command line template, which is for C++, there does not >> seem to be one for ObjC++. All

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Graham Cox
On 30 Jan 2014, at 8:03 am, Keary Suska wrote: > Absolutely, and I have found it invaluable to troubleshoot state issues, but > unfortunately it is not App Store safe (read: basis for rejection), as it > relies on a private method call for proper NSDocument change tracking... It does? I'm u

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Uli Kusterer
On 29 Jan 2014, at 18:02, Peter Teeson wrote: > All the searching I've done has not turned up anything current about how > things work > these days with Xcode 5 and llvm. There is the 2005 ObjC++.pdf which I have > but Xcode has changed a lot since those days. I talked about ObjC++ on NSBrie

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Graham Cox
On 30 Jan 2014, at 3:03 am, Michael Starke wrote: > NSUndoManager prepareWithInvocationTarget: > > the proxy that wraps the NSInvocation retains the target. Thus using a > [[undoManager prepareWithInovationTarget:myObject] remove] call should ensure > the object lives as long as the undo sta

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Rui Pacheco
To those of you doing Objective-C++ apps, is there a difference in terms of performance or memory usage? I’ve noticed that TextMate 2, which is done in Objective-C++, consumes less memory than the Chocolat editor which seems to be done exclusively in Cocoa. On 30 Jan 2014, at 00:04, Uli Kustere

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 3:16 PM, Rui Pacheco wrote: > To those of you doing Objective-C++ apps, is there a difference in terms of > performance or memory usage? > I’ve noticed that TextMate 2, which is done in Objective-C++, consumes less > memory than the Chocolat editor which seems to be done ex

Re: Preserving undo actions on deleted targets

2014-01-29 Thread Keary Suska
On Jan 29, 2014, at 3:44 PM, Graham Cox wrote: > > On 30 Jan 2014, at 8:03 am, Keary Suska wrote: > >> Absolutely, and I have found it invaluable to troubleshoot state issues, but >> unfortunately it is not App Store safe (read: basis for rejection), as it >> relies on a private method call

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Uli Kusterer
On 30 Jan 2014, at 00:16, Rui Pacheco wrote: > To those of you doing Objective-C++ apps, is there a difference in terms of > performance or memory usage? > > I’ve noticed that TextMate 2, which is done in Objective-C++, consumes less > memory than the Chocolat editor which seems to be done excl

Re: Xcode 5 & Obj-C++

2014-01-29 Thread SevenBits
On Jan 29, 2014, at 6:41 PM, Uli Kusterer wrote: > On 30 Jan 2014, at 00:16, Rui Pacheco wrote: >> To those of you doing Objective-C++ apps, is there a difference in terms of >> performance or memory usage? >> >> I’ve noticed that TextMate 2, which is done in Objective-C++, consumes less >> m

Re: Delays in awaking iOS app

2014-01-29 Thread Gerriet M. Denkmann
On 30 Jan 2014, at 04:05, Rick Mann wrote: > I've seen behaviors like this with other apps, i.e. the Google Hangouts app. > The keyboard will be active from a chat, and I'll leave the app. Then I'll > get a notification that a message came in, go to the app, and there's some > period of time

Re: Delays in awaking iOS app

2014-01-29 Thread Rick Mann
All I can say is to write a bug. I did, regarding the Hangouts keyboard delay. On Jan 29, 2014, at 16:00 , Gerriet M. Denkmann wrote: > > On 30 Jan 2014, at 04:05, Rick Mann wrote: > >> I've seen behaviors like this with other apps, i.e. the Google Hangouts app. >> The keyboard will be activ

Re: Customizing a Mac Installer Package

2014-01-29 Thread Charles Srstka
On Jan 29, 2014, at 11:36 AM, Bradley O'Hearne wrote: > Hello, > > I am working on an app which for the present version, must be installed via > an installer package. The next version will be a Mac App Store app, so this > won’t be a concern then. But for the time being, the app has its own

Re: Delays in awaking iOS app

2014-01-29 Thread Gerriet M. Denkmann
On 30 Jan 2014, at 07:01, Rick Mann wrote: > All I can say is to write a bug. I did, regarding the Hangouts keyboard delay. I planned to do so (but was waiting for 7.1 to appear). But I might as well do it now. Done: 15941951. > > On Jan 29, 2014, at 16:00 , Gerriet M. Denkmann wrote: > >>

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Eric Wing
On 1/29/14, Uli Kusterer wrote: > On 30 Jan 2014, at 00:16, Rui Pacheco wrote: >> To those of you doing Objective-C++ apps, is there a difference in terms >> of performance or memory usage? >> >> I've noticed that TextMate 2, which is done in Objective-C++, consumes >> less memory than the Chocol

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 4:28 PM, Eric Wing wrote: > - Additionally, C++ will typically increase your compile and link times. Oh my yes. The C++ compiler generates huge amounts of symbolic data and nearly chokes the linker. The last big C++ project I worked on (Chrome) took over a minute just to l

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Lee Ann Rucker
On Jan 29, 2014, at 4:42 PM, Jens Alfke wrote: > > > * except for a subset of NSNumbers which the runtime cleverly hides inside > tagged pointers, a C++-like trick Smalltalk did it first. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Greg Parker
On Jan 29, 2014, at 4:57 PM, Lee Ann Rucker wrote: > On Jan 29, 2014, at 4:42 PM, Jens Alfke wrote: >> >> * except for a subset of NSNumbers which the runtime cleverly hides inside >> tagged pointers, a C++-like trick > > Smalltalk did it first. Lisp probably did it before that. -- Greg Par

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Jens Alfke
On Jan 29, 2014, at 4:57 PM, Lee Ann Rucker wrote: > Smalltalk did it first. Actually LISP did it first, if you want to get pedantic… (Wikipedia has let me down: the entry for Tagged Pointer is pretty lame and has no discussion of the history.) —Jens _

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Graham Cox
On 30 Jan 2014, at 12:02 pm, Jens Alfke wrote: > Wikipedia has let me down: the entry for > is pretty lame FTFY ;) --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Xcode 5 & Obj-C++

2014-01-29 Thread Scott Ribe
On Jan 29, 2014, at 6:02 PM, Greg Parker wrote: > Lisp probably did it before that. Hell, Lisp machines did it in hardware ;-) -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list

Legal Opinion on GCUndoManager

2014-01-29 Thread Jerry Krinock
On 2014 Jan 29, at 13:03, Keary Suska wrote: > unfortunately it [GCUndoManager] is not App Store safe … as it relies on a > private method call for proper NSDocument change tracking… I just spent the last half hour studying this and wrote my own concise legal opinion arguing why GCUndoManager