Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 4:25 pm, Ken Thomases wrote: >> So you're saying it's a bug? > > I think the bug is that IB hides the existence of the sub-NIB. If IB > presented the sub-NIB with all of the usual placeholders and put a Shared > User Defaults Controller into it when you set a binding on it,

Re: Bindings in view-based tables

2015-03-05 Thread Graham Cox
> On 6 Mar 2015, at 4:25 pm, Ken Thomases wrote: > >> So you're saying it's a bug? > > I think the bug is that IB hides the existence of the sub-NIB. If IB > presented the sub-NIB with all of the usual placeholders and put a Shared > User Defaults Controller into it when you set a binding on

Re: Bindings in view-based tables

2015-03-05 Thread Ken Thomases
On Mar 5, 2015, at 8:15 PM, Shane Stanley wrote: > On 6 Mar 2015, at 12:06 pm, Ken Thomases wrote: >> >> I _think_ connections to File's Owner are restored when the cell view NIB is >> loaded, but the File's Owner of the sub-NIB may not be the same as the >> File's Owner of the outer NIB. It

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 12:06 pm, Ken Thomases wrote: > > It seems you can't delete the cell view that's under the table column in the > first NIB. It also seems that the row height is based on its height. -- Shane Stanley ___ Cocoa-dev mailing list

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 12:06 pm, Ken Thomases wrote: > > I _think_ connections to File's Owner are restored when the cell view NIB is > loaded, but the File's Owner of the sub-NIB may not be the same as the File's > Owner of the outer NIB. It may not even be the same class. It may also work > to

Re: Bindings in view-based tables

2015-03-05 Thread Quincey Morris
On Mar 5, 2015, at 17:06 , Ken Thomases wrote: > > Unfortunately, the solution is clumsy. You have to use a separate view NIB > for the table cell view. That means you can't really design the view-based > table in the NIB that contains the table view. The table view is in one NIB > and the

Re: Bindings in view-based tables

2015-03-05 Thread Ken Thomases
On Mar 5, 2015, at 6:09 PM, Shane Stanley wrote: > On 6 Mar 2015, at 10:32 am, Quincey Morris > wrote: >> >> Er, what exactly was bound to what? > > In the cell-based table, the table's (sole) column's Font Size is bound to > the shared user defaults controller with a Controller Key of value

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 11:42 am, Quincey Morris wrote: > > Are you sure that the user defaults are being maintained properly? Does > choosing from the radio buttons actually change the user defaults? Is the > text field size getting set “manually” from somewhere else (perhaps as part > of the stan

Re: Bindings in view-based tables

2015-03-05 Thread Quincey Morris
On Mar 5, 2015, at 16:09 , Shane Stanley wrote: > > In the cell-based table, the table's (sole) column's Font Size is bound to > the shared user defaults controller with a Controller Key of values and Model > Key Path of tableTextSize. > > The buttons are in a radio group, with the Selected Ta

Re: Bindings in view-based tables

2015-03-05 Thread Shane Stanley
On 6 Mar 2015, at 10:32 am, Quincey Morris wrote: > > Er, what exactly was bound to what? In the cell-based table, the table's (sole) column's Font Size is bound to the shared user defaults controller with a Controller Key of values and Model Key Path of tableTextSize. The buttons are in a r

Re: Bindings in view-based tables

2015-03-05 Thread Quincey Morris
On Mar 5, 2015, at 15:20 , Shane Stanley wrote: > > The same value was used via bindings to set the Font Size in the table. Er, what exactly was bound to what? In the view-based version, the text field would typically be bound to ‘objectValue.something’ (or possibly just to ‘objectValue’ if yo

Bindings in view-based tables

2015-03-05 Thread Shane Stanley
I'm converting a cell-based table to a view-based table in an old project. It contains a pair of buttons, Big and Small, that set a value in user defaults to 13 or 11. The same value was used via bindings to set the Font Size in the table. It worked fine with a cell-based table, but I'm having n

Re: Mac OS X - Inter-Application Communications

2015-03-05 Thread Kevin Meaney
On 5 Mar 2015, at 19:29, Dave wrote: > > Hi, > > I’m really confused as it what type of a Application I need to create, from > reading the "Daemons and Services Programming Guide", it lists: > > Login Item. > XPC Service. > Launch Daemon. > Lauch Agent. > > On the face of it, a LogIn Item see

Re: Mac OS X - Inter-Application Communications

2015-03-05 Thread Dave
Hi, I’m really confused as it what type of a Application I need to create, from reading the "Daemons and Services Programming Guide", it lists: Login Item. XPC Service. Launch Daemon. Lauch Agent. On the face of it, a LogIn Item seems to be what i am looking for, but its unclear (at least to m

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-03-05 Thread Jens Alfke
> On Mar 5, 2015, at 9:30 AM, Jon Baumgartner > wrote: > > That bug has gotten no response whatsoever from Apple. Any advice on how to > proceed? I wouldn’t expect a response from Apple in ‘only’ a month, except perhaps to notify you that it’s a duplicate. If they do fix the bug, you won’t

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-03-05 Thread Kyle Sluder
On Thu, Mar 5, 2015, at 11:30 AM, Jon Baumgartner wrote: > That bug has gotten no response whatsoever from Apple. Any advice on how > to proceed? Patience. :) Internal activity on a bug is rarely reflected to the external developer, unless they need to verify the fix or provide additional informa

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-03-05 Thread Steve Mills
On Mar 5, 2015, at 11:30:01, Jon Baumgartner wrote: > > That bug has gotten no response whatsoever from Apple. Any advice on how to > proceed? > >> On Feb 4, 2015, at 1:19 PM, Jon Baumgartner >> wrote: >> >> I filed a radar: rdar://19716583 You only filed it a month ago. It can take month

Re: NSString stringByAbbreviatingWithTildeInPath and Sandboxing

2015-03-05 Thread Jon Baumgartner
That bug has gotten no response whatsoever from Apple. Any advice on how to proceed? > On Feb 4, 2015, at 1:19 PM, Jon Baumgartner > wrote: > > I filed a radar: rdar://19716583 > > > On 1/29/2015 10:55 AM, Kyle Sluder wrote: >> Even in a sandbox, you can get the user’s home directory using

Re: NSWorkSpace performFileOperation (a)synchronousness

2015-03-05 Thread Jens Alfke
> On Mar 5, 2015, at 2:36 AM, Aandi Inston wrote: > > My question relates to asynchronousness (is that a word)? It looks like a > synchronous method as it returns a success or failure. But the documentation > says of the tag variable "a positive integer if the operation was performed > asynchron

NSWorkSpace performFileOperation (a)synchronousness

2015-03-05 Thread Aandi Inston
have a requirement to copy files from my Mac OS app. I find: success=[NSWorkSpace performFileOperation:NSWorkSpaceCopyOperation source:nsstring* // source directory path destination:nsstring* // target directory path file:nsarray* // nsstring array containing short paths of files or directorie