Re: Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread Ben Golding
On 14 May 2014, at 11:52 am, Kyle Sluder wrote: > On May 13, 2014, at 6:31 PM, Ben Golding wrote: >> >> In an app I'm working on, I'd like to use a very basic text input field just >> like the one used by Xcode's Navigate>"Jump in File" (aka,

Type of text field used by Xcode's "Jump to Line"?

2014-05-13 Thread Ben Golding
In an app I'm working on, I'd like to use a very basic text input field just like the one used by Xcode's Navigate>"Jump in File" (aka, cmd-L) but I don't know what it's called so I can't look it up. Could someone let me know what it's called? Thanks, Ben. smime.p7s Description: S/M

NSTextFinder vs NSTableView -- mano a mano showdown

2014-04-15 Thread Ben Golding
I was wondering whether anyone has managed to get NSTextFinder to work with NSTableView so that it will search through the table contents, highlighting the fields that match. The NSTextFinder documentation is difficult to understand and mixes its use searching with NSTextView in with the more

Changing size of view during NSPrintOperation?

2012-07-19 Thread Ben Golding
In my app, I have a custom view which I'm printing. The NSPrintPanel has an accessory panel attached with a couple of options on it that I'm observing using the NSPrintPanelAccessorizing method -keyPathsForValuesAffectingPreview. That works fine. When the user changes some of the settings, t

[Solved] Re: Accessing NSWIndowController attribute from a subview in IB

2011-04-28 Thread Ben Golding
On 29/04/2011, at 00:17, Alexander Spohr wrote: >> I have a document-based app which loads a couple of NSWindowController >> subclasses. That's fine. In one of the subclasses, I load a nib with a >> NSView subclass. It wants to access one of the instance vars in the window >> controller sub

Accessing NSWIndowController attribute from a subview in IB

2011-04-28 Thread Ben Golding
I feel like I should be able to figure this out but I feel like I'm going around circles. I've looked through the mailing list and can't find anything similar (but I might be searching using the wrong terms). I have a document-based app which loads a couple of NSWindowController subclasses.

Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!

2011-04-20 Thread Ben Golding
On 20/04/2011, at 19:07, Joanna Carter wrote: >> Your value transformer, if you insist on doing it that way, should be coded >> to expect this, and should transform an entire array of strings, not single >> strings. > > I got the impression that the array in question could hold unprintable >

Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!

2011-04-20 Thread Ben Golding
On 20/04/2011, at 15:41, Ken Thomases wrote: > On Apr 19, 2011, at 8:46 PM, Ben Golding wrote: > >> I should have been more specific. What I have looks like: >> >> popupButton.content -(Transformer)-> [arrayController].arrangedObjects >> popupButton.s

Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!

2011-04-19 Thread Ben Golding
On 20/04/2011, at 01:09, Kyle Sluder wrote: > On Apr 19, 2011, at 6:20 AM, Ben Golding wrote: > >> >> Sure, I'm using content to bind to an array controller bound to an array of >> pop-up button titles and selected index (though I'm picking up the selected

Re: ArrayController vs Pop-up button vs Transformer -- three way tag team death match!

2011-04-19 Thread Ben Golding
On 19/04/2011, at 18:19, Quincey Morris wrote: > On Apr 19, 2011, at 00:41, Ben Golding wrote: > >> I am a bit stumped. I have an array controller which I have hooked up to a >> pop-up button and that works quite well. The members of the array are >> NSStrings but

ArrayController vs Pop-up button vs Transformer -- three way tag team death match!

2011-04-19 Thread Ben Golding
I am a bit stumped. I have an array controller which I have hooked up to a pop-up button and that works quite well. The members of the array are NSStrings but I would like to reformat them when they're displayed by the pop-up button. Seems fairly straightforward, I thought I'd just write a l

Finding per-process network usage?

2011-03-24 Thread Ben Golding
[I'm not sure if this is the right forum to ask this, please direct me there if it's wrong] I'm trying to monitor the network traffic of applications by process but I'm having trouble working out how to query the system for that information. I've been looking at sysctl() and while I have some

Re: NSTableView selecting text within a cell [SOLUTION]

2011-01-31 Thread Ben Golding
On 31/01/2011, at 16:30, Ben Golding wrote: > I have an app with a NSTableView where the data is presented to the user. > When the user hits "Find", I'd like to be able to scroll the table view to > the visible cell (easy enough) and then select the range that matc

NSTableView selecting text within a cell

2011-01-30 Thread Ben Golding
I have an app with a NSTableView where the data is presented to the user. When the user hits "Find", I'd like to be able to scroll the table view to the visible cell (easy enough) and then select the range that matched within that field (not so easy). At present, my code looks like: NSCell *

Re: Implementing a Find menu item like Safari? [SOLUTION]

2011-01-30 Thread Ben Golding
On 28/01/2011, at 14:43, Ben Golding wrote: > Safari has a really nice "Find" bar that scrolls down from the title pane of > the window. I'd like to do something like that in an application that I'm > developing but I can't find out whether that's g

Implementing a Find menu item like Safari?

2011-01-27 Thread Ben Golding
Safari has a really nice "Find" bar that scrolls down from the title pane of the window. I'd like to do something like that in an application that I'm developing but I can't find out whether that's generally available and how to use it. Further, I'd like to be able to highlight the found text

NSTableView with ArrayController bindings not updating?

2011-01-01 Thread Ben Golding
I feel like I must be doing something silly but I can't see it. I am writing a crossword setting application. I have a Crossword class which has two instance variables, grid and clues each of which is a custom class (Grid and Clues). My problem relates to the Clues class which has two instanc

Re: Draw String/text in circular path.

2010-08-23 Thread Ben Golding
On 23/08/2010, at 16:12, Ahsan Shafiq wrote: > I need to draw text in circular path. Any thoughts or comments on it? I needed to do this for an app I was writing. I wound up including the whole GCDrawKit framework in my application just to get that functionality (http://www.apptree.net/drawki

Re: Interface Builder input panel fields not updated when OK button clicked

2010-04-08 Thread Ben Golding
On 09/04/2010, at 15:08, Jon Pugh wrote: > At 3:02 PM +1000 4/9/10, Ben Golding wrote: >> I can't seem to find a way of ending editing on all the fields when the >> button is pressed? Is there a way to do this? > > NSWindow > > endEditingFor: > Forces th

Interface Builder input panel fields not updated when OK button clicked

2010-04-08 Thread Ben Golding
This must be an old question but I can't seem to find a way to ask it so Google will lead me to the answer. I have an input sheet that drops down from the window, it works fine. A user updates input fields on it and then presses the OK button to close the sheet and update the app. In one of

Changing appearance of NSDatePicker?

2010-03-16 Thread Ben Golding
Is it possible to change the way the dates are presented in NSDatePicker in graphical mode? In my app I have a calendar with a list of events in it, when the user selects a date in the date picker it shows which events occur on that day. I'd like to offer a visual clue about which dates have

NSMatrix of NSButtonCells prototype bindings not applied to instances in matrix

2009-04-06 Thread Ben Golding
I've been trying to create a calendar matrix of days which are clickable to select a day in the month. It's a something of a classic example of using NSMatrix from what I've read but I'm trying to use bindings to hook it up. I am using an NSArrayController holding an array of NSButtonCel