Re: crashes loading saved file

2012-05-29 Thread James Maxwell
> > That sounds like it could be a big clue, to me. > > encodeConditionalObject only encodes the object reference if it has been > seen by the archiver already. If it hasn't, nil is encoded. So if things are > breaking when you use it, it means that parts of the object graph you think > you e

Re: crashes loading saved file

2012-05-29 Thread James Maxwell
Hi All, Yes, I think this general approach of trying to find a way of making reciprocal connections in initWithCoder, rather than archiving all connections, makes a great deal of sense. Quite honestly, this is an implementation of a theoretical model that is, in every conceivable way, a prototy

Sandboxing and calling Launchctl

2012-05-29 Thread Mark Allan
Hi all, I posted this to the developer forums yesterday but I think this list probably gets a good bit more eyeball than the forum, so I'm sending here too. Sorry for the cross-post if you're seeing it twice. Anyway... I'm trying to put together the last bits and pieces of sandboxing my app bu

Re: NSTextInputClient Protocol Question

2012-05-29 Thread Eric Matecki
Hi, But Command+LeftArrow does send the moveToLeftEndOfLine: selector. So the choice of what goes to the menu, and what goes to -doCommandBySelector: must be more subtle than Command+key and (not Command)+key, or maybe just plain arbitrary ? A+ On 26/05/12 00:42, Aki Inoue wrote: Because the

Re: Sandboxing and calling Launchctl

2012-05-29 Thread Stephane Sudre
On Tue, May 29, 2012 at 10:52 AM, Mark Allan wrote: > Hi all, > > I posted this to the developer forums yesterday but I think this list > probably gets a good bit more eyeball than the forum, so I'm sending here > too. Sorry for the cross-post if you're seeing it twice.  Anyway... > > I'm trying

Re: Sandboxing and calling Launchctl

2012-05-29 Thread Mark Allan
On 29 May 2012, at 12:24, Stephane Sudre wrote: > On Tue, May 29, 2012 at 10:52 AM, Mark Allan > Hi all, >> >> I posted this to the developer forums yesterday but I think this list >> probably gets a good bit more eyeball than the forum, so I'm sending here >> too. Sorry for the cross-post if y

Re: Sandboxing and calling Launchctl

2012-05-29 Thread Torsten Curdt
> SMLoginItemSetEnabled can be a solution. Again "fabulous" documentation on that one. I tried my best to get the usual "start on login" wrapped up in a helper https://github.com/tcurdt/TCLoginItemHelper ...but in the end just left it out of the app. cheers, Torsten _

dragging from view based table view

2012-05-29 Thread Koen van der Drift
This weekend I switched from a cell-based table view to a view-based table view (OS X) . It is a one column table, and I use two static text items in each cell to display some info, bound to my NSArrayController. So far so good, I subclassed NSTableCellView and can modify the appearance of the te

Re: Sandboxing. WTF?

2012-05-29 Thread Mikkel Islay
On 29 May 2012, at 01:59, Graham Cox wrote: > Nobody has written a better analysis, critique and alternative suggestion for > sandboxing than Wil Shipley: > http://blog.wilshipley.com/2011/11/real-security-in-mac-os-x-requires.html An interesting post, but his arguments against sandboxing, I t

Re: Sandboxing. WTF?

2012-05-29 Thread Kyle Sluder
On May 28, 2012, at 8:49 PM, Graham Cox wrote: > > The current implementation of sandboxing is extremely clunky, True. > full of holes, Not so much. If anything it leans towards over-restrictiveness rather than errant permissiveness. > and solves no real problems. False. It solves the prob

Re: Sandboxing and calling Launchctl

2012-05-29 Thread Mark Allan
For anyone following, using temporary entitlements only gets rid of two of the four errors, so I still can't make scheduling via launchd work. sandboxd still spits out: launchctl(14634) deny job-creation and Xcode/run log still gives: launch_msg(): Socket is not connected Other

Re: Sandboxing. WTF?

2012-05-29 Thread Phillip Mills
On 2012-05-29, at 10:34 AM, Kyle Sluder wrote: > It solves the problem of applications being unable to express their intended > boundaries to the operating system. I'm honestly curious When did that become a real-world problem for Mac users? (And if it's anticipatory, what's different now

Re: Sandboxing. WTF?

2012-05-29 Thread koko
Hear, hear. -koko On May 29, 2012, at 11:15 AM, Phillip Mills wrote: > sandboxing makes it seem more like a digital picture frame than a computing > device. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: Sandboxing. WTF?

2012-05-29 Thread Alex Zavatone
A long long time ago, we had getNetText and postNetText in Shockwave. We could save little text files in a specific folder. While the Sunder development, each shockwave movie had the option to exist in global space and have access to another SW movie's vars. Just to do a test of intermovie co

Re: Sandboxing. WTF?

2012-05-29 Thread Alex Zavatone
On May 29, 2012, at 5:51 PM, Alex Zavatone wrote: > A long long time ago, we had getNetText and postNetText in Shockwave. We > could save little text files in a specific folder. While the Sunder > development, each shockwave movie had the option to exist in global space and > have access to

Re: NSTextInputClient Protocol Question

2012-05-29 Thread Aki Inoue
Since -selectAll: is not specific to text, there should be a "physical" menu item inside the "Edit" menu. -moveToLeftEndOfLine: is useful only in text editing context. Aki On May 29, 2012, at 2:46 AM, Eric Matecki wrote: > Hi, > > But Command+LeftArrow does send the moveToLeftEndOfLine: selec

Sandboxing and "helper apps"

2012-05-29 Thread Todd Heberlein
In the past you could include a full UNIX application inside a Mac application bundle. For example, in the directory MyApp.app/Contents/MacOS could be the Cocoa executable "MyApp" and the UNIX executable "my_helper_app". In addition to running this helper app from the Cocoa app, this U

RE: Sandboxing. WTF?

2012-05-29 Thread Shawn Bakhtiar
I do tend to get melodramatic, for sure, as I truly love my 1s and 0s, and my love for them, makes me want to see them flow freely, unobtrusively, and have access to everything, an extension of myself on the users computer, helping him/her to get their work done. So sorry if it sounds like

NSDocument never deallocated with autosave/versions

2012-05-29 Thread Graham Cox
I've got a large memory leak in my app because my document class is never deallocated once I've added content to it. I've been over it with a fine-toothed comb and I'm prepared to say it doesn't look as if I'm doing anything wrong. I overrode -retain and set a breakpoint there, so I could see w

RE: Sandboxing. WTF?

2012-05-29 Thread Shawn Bakhtiar
Just to make the point... Linux has SELinux, which basically does the same thing. There are a set of ACL's and when an application tries to access files that are not part of its "Domain" SELinux does not allow it. HOWEVER... SELinux is an OPTION. It can be run in one of three ways. Enforcing

Re: Sandboxing. WTF?

2012-05-29 Thread Quincey Morris
On May 29, 2012, at 19:03 , Shawn Bakhtiar wrote: > Again, the technical answer (solution) is NOT to use it. If everyone on > this list really understood the damage it does by turning people away from > Apple (and the art of programing) many people, and acted accordingly, we can, > and will chan

Re: NSDocument never deallocated with autosave/versions

2012-05-29 Thread Graham Cox
Well well. This leak only occurs if I have sandboxing enabled. What a surprise! The save dialog is not releasing the document when it closes if sandboxing is turned on. If I repeatedly close the window but cancel the save dialog, the retain count goes up by about 9 counts each time. Sandboxing

cocoa app switching windows

2012-05-29 Thread Martin Hewitson
Dear list, I have a report from a user that the usual cmd-` (command back-tick) doesn't work in my app for switching between open documents. I can't reproduce this on any of the test machines I have. Does anyone have any idea what could cause this behaviour? I've tried with various UI elements

Re: cocoa app switching windows

2012-05-29 Thread Graham Cox
On 30/05/2012, at 3:52 PM, Martin Hewitson wrote: > I have a report from a user that the usual cmd-` (command back-tick) doesn't > work in my app for switching between open documents. I can't reproduce this > on any of the test machines I have. Does anyone have any idea what could > cause this

Re: cocoa app switching windows

2012-05-29 Thread Martin Hewitson
The claim is that it's working on other apps. Martin - Martin Hewitson AEI Hannover - On 30 May 2012, at 07:59, Graham Cox wrote: > On 30/05/2012, at 3:52 PM, Martin Hewitson wrote: > >> I have a report from a user that the usual cmd-`