Memory issues when loading a document

2012-10-23 Thread Ulf Dunkel
I wonder if this issue is created by our app or if it is inherent in Mac OS X: Our app creates documents which can contain various content per document page, e.g. PDF files. Assume you have created a document with 64 pages, each of them contains a full-page PDF content. The document file's weight

Re: Memory issues when loading a document

2012-10-23 Thread Mike Abdullah
On 23 Oct 2012, at 11:21, Ulf Dunkel dun...@calamus.net wrote: I wonder if this issue is created by our app or if it is inherent in Mac OS X: Our app creates documents which can contain various content per document page, e.g. PDF files. Assume you have created a document with 64 pages,

sync drawing an ever-increasing path

2012-10-23 Thread Roland King
I want to animate the drawing of CGPath in a UIView, so it looks as if it's being drawn. I have the UIView, I have the CGPath, I am able to split the CGPath at any point from 0 to 100% into that which should be drawn and that which shouldn't yet, that's all done, so I can, fairly efficiently,

Re: sync drawing an ever-increasing path

2012-10-23 Thread Roland King
hmm .. actually it looks like I can TOTALLY use CALayer for this. I need a better book, the one I have doesn't cover this. Hitting google. On 23 Oct, 2012, at 7:37 PM, Roland King r...@rols.org wrote: I want to animate the drawing of CGPath in a UIView, so it looks as if it's being drawn.

Open untitled file in Document-based app

2012-10-23 Thread ecir hana
Hello, I would like my app to open new untitled document every time it starts. It worked in 10.6 but now I upgraded to 10.8 and when I close the window with cmd+w and then restart the application it wont open any windows. Please, how to make it open a new window every time the app starts,

Running a-foul of bindings with multiple-value subfields

2012-10-23 Thread Erik Stainsby
Hello all, I am working my way through trying to understand the correct use of bindings for a non-trivial model. The model I am working on is derived from the contacts database ABPerson. I am unclear how to bind to the elements of a multiple entry list. A person has a handful of direct

Re: Memory issues when loading a document

2012-10-23 Thread Ulf Dunkel
Important bit you haven't told us: is your app 32bit, 64bit, or both? Oh, sorry, it's a 32bit app which still supports at least Mac OS X 10.4.11. We're already working on the 64bit version of that app, but this is a current version's issue which I would like to understand and - hopefully - be

App Sandbox Container or Data Directory

2012-10-23 Thread Richard Somers
I do not understand what is going on with an application's sandboxed container or Data directory. NSHomeDirectory for an OS X sandboxed app points here. ~/Library/Containers/bundle_id/Data The sandbox Data directory is pre-populated with items. Data/Desktop (Alias)

Re: App Sandbox Container or Data Directory

2012-10-23 Thread Mike Abdullah
On 23 Oct 2012, at 19:13, Richard Somers wrote: I do not understand what is going on with an application's sandboxed container or Data directory. NSHomeDirectory for an OS X sandboxed app points here. ~/Library/Containers/bundle_id/Data The sandbox Data directory is pre-populated

Re: sync drawing an ever-increasing path

2012-10-23 Thread David Duncan
On Oct 23, 2012, at 4:37 AM, Roland King r...@rols.org wrote: I want to animate the drawing of CGPath in a UIView, so it looks as if it's being drawn. I have the UIView, I have the CGPath, I am able to split the CGPath at any point from 0 to 100% into that which should be drawn and that

Re: sync drawing an ever-increasing path

2012-10-23 Thread David Rowland
This worked for me. When initializing your UIView, add an instance variable shapeLayer and do this, shapeLayer = [CAShapeLayer layer]; [[self layer] addSublayer:shapeLayer]; In drawRect, set up your path and do this, CABasicAnimation *pathAnimation = [CABasicAnimation

Re: App Sandbox Container or Data Directory

2012-10-23 Thread Richard Somers
On Oct 23, 2012, at 1:29 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: The sandbox is intended to limit what an *app* can do by itself, not what a *user* can do. Users are free to save things wherever they like; the only entitlement that plays a role in that is

Re: sync drawing an ever-increasing path

2012-10-23 Thread David Duncan
On Oct 23, 2012, at 12:34 PM, David Rowland rowla...@sbcglobal.net wrote: This worked for me. When initializing your UIView, add an instance variable shapeLayer and do this, shapeLayer = [CAShapeLayer layer]; [[self layer] addSublayer:shapeLayer]; In drawRect, set up

Re: App Sandbox Container or Data Directory

2012-10-23 Thread Kyle Sluder
On Tue, Oct 23, 2012, at 01:05 PM, Richard Somers wrote: On Oct 23, 2012, at 1:29 PM, Mike Abdullah cocoa...@mikeabdullah.net wrote: The sandbox is intended to limit what an *app* can do by itself, not what a *user* can do. Users are free to save things wherever they like; the only

Re: App Sandbox Container or Data Directory

2012-10-23 Thread Sean McBride
On Tue, 23 Oct 2012 12:13:31 -0600, Richard Somers said: ~/Library/Containers/bundle_id/Data *SNIP* A lot of this simply does not make sense. What am I missing? Are you aware that, by default, all of ~/Library is hidden from the user, and it's basically expected that he won't go in that

Re: sync drawing an ever-increasing path

2012-10-23 Thread David Rowland
There are several paths to be animated. I want each to appear when the user does some action. It seemed the best to but them in a method called by drawRect and redraw the view when something changed. Why would the memory footprint be enlarged? thanks for pointing to didMoveToWindow. David

Re: sync drawing an ever-increasing path

2012-10-23 Thread David Duncan
On Oct 23, 2012, at 2:44 PM, David Rowland rowla...@sbcglobal.net wrote: There are several paths to be animated. I want each to appear when the user does some action. It seemed the best to but them in a method called by drawRect and redraw the view when something changed. Why would the

Re: Open untitled file in Document-based app

2012-10-23 Thread Graham Cox
On 24/10/2012, at 2:31 AM, ecir hana ecir.h...@gmail.com wrote: I tried to return YES in both applicationShouldOpenUntitledFile: and applicationOpenUntitledFile: of the app delegate without luck. If you return YES from -applicationOpenUntitledFile: the application will NOT open a new file -

Re: App Sandbox Container or Data Directory

2012-10-23 Thread Richard Somers
On Oct 23, 2012, at 2:43 PM, Kyle Sluder k...@ksluder.com wrote: If by unapproved you mean my app's sandbox hasn't been extended to include this path then you are incorrect. The user can choose the destination, and the NSURL you get back from the open panel will carry the rights to access

Re: sync drawing an ever-increasing path

2012-10-23 Thread Roland King
On 24 Oct, 2012, at 2:37 AM, David Duncan david.dun...@apple.com wrote: On Oct 23, 2012, at 4:37 AM, Roland King r...@rols.org wrote: I want to animate the drawing of CGPath in a UIView, so it looks as if it's being drawn. I have the UIView, I have the CGPath, I am able to split the

Security-scoped bookmarks linked to code signing?

2012-10-23 Thread Graham Cox
I'm using security-scoped bookmarks to save the location of certain folders between launches so that my sandboxed app works properly. We've had reports that resolving these bookmarks sometimes crashes deep inside the security-scoping resolution but I have been unable to reproduce this. But one

Re: How to programmatically detect that Mission Control is running?

2012-10-23 Thread Ken Thomases
On Oct 22, 2012, at 1:05 AM, Daiwei Li wrote: You should rely on key repeat events to let you know that you need to continue to respond to the key press. For mouse events, you should request periodic events. Could you point me towards the APIs that let me get key repeat and periodic mouse