Re: What do the font-related Cocoa Bindings in NSTableView and NSTableColumn do?

2017-04-05 Thread Charles Srstka
> On Apr 5, 2017, at 4:08 PM, Daryle Walker wrote: > >> >> On Apr 5, 2017, at 12:19 PM, Charles Srstka > > wrote: >> >> >> Actually, while NSTableCellView won’t bind to *most* things outside of the >> table view, there is an exception for the table’s delegate.

Re: Is there a way to pluralize menu items?

2017-04-05 Thread Steve Mills
> On Apr 5, 2017, at 15:51, Daryle Walker wrote: > > Can I do this from validateUserInterfaceItem: instead? Probably. Read the docs and/or try it. Steve via iPad ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: Reference to embedded view controller in IB?

2017-04-05 Thread Doug Hill
Alright, thanks for the follow-up. It looks there's nothing built into UIKit for doing this lookup or a way to store a reference in IB, so I'll try one of these solutions. Doug Hill https://github.com/djfitz/SFFontFeatures > On Apr 5, 2017, at 2:30 P

Re: Reference to embedded view controller in IB?

2017-04-05 Thread Quincey Morris
On Apr 5, 2017, at 14:06 , Doug Hill wrote: > > Let's say, views are in position 1, 2, and 3 and I want to configure 1, 2, > and 3 differently based on their position. The simplest way would be to set a different tag on each view, and distinguish between them using “viewController.view.tag”.

Re: What do the font-related Cocoa Bindings in NSTableView and NSTableColumn do?

2017-04-05 Thread Daryle Walker
> On Apr 5, 2017, at 5:08 PM, Daryle Walker wrote: > > >> On Apr 5, 2017, at 12:19 PM, Charles Srstka wrote: >> >> >> Actually, while NSTableCellView won’t bind to *most* things outside of the >> table view, there is an exception for the table’s delegate. So, if you set >> the table’s dele

Re: What do the font-related Cocoa Bindings in NSTableView and NSTableColumn do?

2017-04-05 Thread Daryle Walker
> On Apr 5, 2017, at 12:19 PM, Charles Srstka wrote: > > > Actually, while NSTableCellView won’t bind to *most* things outside of the > table view, there is an exception for the table’s delegate. So, if you set > the table’s delegate to File’s Owner, and then bind the NSTableCellView’s > ‘fo

Re: Reference to embedded view controller in IB?

2017-04-05 Thread Doug Hill
Thanks for the follow up. I saw this but I happen to have multiple embedded view controllers. While it's possible to do a search, it's more difficult because there are multiple embed view with the same view controller class. Let's say, views are in position 1, 2, and 3 and I want to configure 1,

Re: Reference to embedded view controller in IB?

2017-04-05 Thread Quincey Morris
On Apr 5, 2017, at 13:42 , Doug Hill wrote: > > Can this be done? Are there other ways to get a reference to the embedded > view controller at runtime? I believe you’ll find the embedded view controller in the root view controller’s “childViewControllers” array property. _

Re: Is there a way to pluralize menu items?

2017-04-05 Thread Daryle Walker
> On Apr 5, 2017, at 9:10 AM, Steve Mills wrote: > > On Apr 4, 2017, at 22:09:34, Daryle Walker wrote: >> >> I have a menu item named like “Remove Item”. But I added support for >> multiple-selection in the table-view. So is there a way to change the menu >> item to “Remove Items” when more

Reference to embedded view controller in IB?

2017-04-05 Thread Doug Hill
I have a view controller that I instantiate in my Storyboard. This view controller has an embedding view inside it's view, and this embedding view has another view controller in it. I need to configure this embedded view controller but I don't know a way to make it available to my container VC

Sierra Document Handling

2017-04-05 Thread Richard Charles
Since switching to macOS 10.12 Sierra I am getting tons of document handling messages in the Xcode debug console for my document based application. // Delete existing document then launch app. 2017-04-05 13:58:13.795408 MyApp[42310:2124840] Item: myFile [9FC1873C-34CA-4E66-9155-99480B47CB11] - U

Re: What do the font-related Cocoa Bindings in NSTableView and NSTableColumn do?

2017-04-05 Thread Charles Srstka
> On Apr 5, 2017, at 8:38 AM, Keary Suska wrote: > >> >> On Apr 4, 2017, at 4:34 PM, Daryle Walker > > wrote: >> >> >>> On Apr 4, 2017, at 9:57 AM, Keary Suska >> > wrote: >>> >>> On Apr 3, 2017, at 5:40 PM, Daryle Walker >>>

Re: Does XML (AEXML) node exist?

2017-04-05 Thread Eric E. Dolecki
I tried this and it seems to work - but does it look sound? let theVolume = xmlDoc.root["volumeUpdated"].first if theVolume != nil { print(">> We have a volume update. \(String(describing: theVolume!))") } On Wed, Apr 5, 2017 at 10:56 AM Eric E. Dolecki wrote: > I'm using AEXML and I have s

Does XML (AEXML) node exist?

2017-04-05 Thread Eric E. Dolecki
I'm using AEXML and I have some return XML from a WebSocket. I want to check if the return XML contains a node or not. In this way, I know what kind of data I'm receiving. What's the best way to check if that volumeUpdated node exists? It has no attributes or value. I tried this (AEXMLEle

Re: disable group of controls

2017-04-05 Thread J.E. Schotsman
> On 05 Apr 2017, at 15:26, Keary Suska wrote: > > How so? You can have multiple enabled bindings on a control, and if any > return NO the control stays disabled. Aha, that solves the problem for me. I still think the Carbon user pane provided a simpler solution. > If you aren’t using binding

Re: disable group of controls

2017-04-05 Thread Alastair Houghton
On 5 Apr 2017, at 12:05, J.E. Schotsman wrote: > >> On 05 Apr 2017, at 11:48, Jack Carbaugh wrote: >> >> Get a list of the controls then loop through it, setting each enabled >> property to false. The container holding them will hold a reference to them > > That way you lose the latent enable

Re: What do the font-related Cocoa Bindings in NSTableView and NSTableColumn do?

2017-04-05 Thread Keary Suska
> On Apr 4, 2017, at 4:34 PM, Daryle Walker wrote: > > >> On Apr 4, 2017, at 9:57 AM, Keary Suska wrote: >> >> >>> On Apr 3, 2017, at 5:40 PM, Daryle Walker wrote: >>> >>> Is there a way to affect the font of a table cell via Bindings? The few >>> times I tried, at the NSTextField level (

Re: disable group of controls

2017-04-05 Thread Keary Suska
> On Apr 5, 2017, at 5:05 AM, J.E. Schotsman wrote: > > >> On 05 Apr 2017, at 11:48, Jack Carbaugh wrote: >> >> Get a list of the controls then loop through it, setting each enabled >> property to false. The container holding them will hold a reference to them > > That way you lose the late

Re: Is there a way to pluralize menu items?

2017-04-05 Thread Charles Srstka
> On Apr 5, 2017, at 8:10 AM, Steve Mills wrote: > > On Apr 4, 2017, at 22:09:34, Daryle Walker > wrote: >> >> I have a menu item named like “Remove Item”. But I added support for >> multiple-selection in the table-view. So is there a way to change the menu >> item to

Re: Is there a way to pluralize menu items?

2017-04-05 Thread Steve Mills
On Apr 4, 2017, at 22:09:34, Daryle Walker wrote: > > I have a menu item named like “Remove Item”. But I added support for > multiple-selection in the table-view. So is there a way to change the menu > item to “Remove Items” when more than one item is selected. I think there’s a > “stringdict”

Re: disable group of controls

2017-04-05 Thread Alastair Houghton
On 5 Apr 2017, at 10:45, J.E. Schotsman wrote: > > On 03 Apr 2017, at 21:00, J.E. Schotsman wrote: >> >> What is the Cocoa way of enabling/disabling a group of controls? >> In Carbon I used to use a user pane for that. >> I thought I would try an NSBox but then I realized it is not a control. >

Re: disable group of controls

2017-04-05 Thread Jonathan Mitchell
> On 5 Apr 2017, at 12:05, J.E. Schotsman wrote: > > >> On 05 Apr 2017, at 11:48, Jack Carbaugh wrote: >> >> Get a list of the controls then loop through it, setting each enabled >> property to false. The container holding them will hold a reference to them > > That way you lose the latent

Re: disable group of controls

2017-04-05 Thread J.E. Schotsman
> On 05 Apr 2017, at 11:48, Jack Carbaugh wrote: > > Get a list of the controls then loop through it, setting each enabled > property to false. The container holding them will hold a reference to them That way you lose the latent enabled state. When the embedder is set to disabled some of the

Re: disable group of controls

2017-04-05 Thread Jonathan Mitchell
> On 5 Apr 2017, at 10:45, J.E. Schotsman wrote: > > >> On 03 Apr 2017, at 21:00, J.E. Schotsman wrote: >> >> What is the Cocoa way of enabling/disabling a group of controls? >> In Carbon I used to use a user pane for that. >> I thought I would try an NSBox but then I realized it is not a cont

Re: disable group of controls

2017-04-05 Thread J.E. Schotsman
> On 03 Apr 2017, at 21:00, J.E. Schotsman wrote: > > What is the Cocoa way of enabling/disabling a group of controls? > In Carbon I used to use a user pane for that. > I thought I would try an NSBox but then I realized it is not a control. Nobody? I thought this would be a simple and solved pro

Re: Normalisation of filenames

2017-04-05 Thread Alastair Houghton
On 5 Apr 2017, at 09:09, Jean-Daniel wrote: > >> Le 5 avr. 2017 à 07:49, Gerriet M. Denkmann a écrit : >> >> Apple uses (as far as I remember) a variant of Unicode’s canonical >> decomposition form. > > Yes they do. I think is due to lack of backward compatibility for > normalisation. I don’

Re: Normalisation of filenames

2017-04-05 Thread Jean-Daniel
> Le 5 avr. 2017 à 07:49, Gerriet M. Denkmann a écrit : > > >> On 3 Apr 2017, at 05:58, Aki Inoue wrote: >> This is the standard Unicode Normalization behavior. Each Unicode character is assigned the Unicode Combining Property, an integer value defining the canonical ordering