NSComboBox like point size in TextEdit

2020-01-29 Thread Lars C. Hassing via Cocoa-dev
I want my NSComboBox to behave like the point size combo in TextEdit: User places cursor in the combobox textfield, User presses arrow down - the menu opens User presses arrow down several times stepping down in the menu. User presses Enter to select the highlighted point size. - or user presses

Re: NSComboBox

2018-07-28 Thread Uli Kusterer
On 26. Jul 2018, at 02:50, Casey McDermott wrote: > Sometimes one has no idea what's in the list, so it really helps to be able > to scroll. > A popup is probably better for that, but not when in hands-on-keyboard mode. You're aware that popups support type-selection, arrow keys etc.? In fact,

Re: NSComboBox

2018-07-27 Thread Clark Cox
ly helps to be able > to scroll. > A popup is probably better for that, but not when in hands-on-keyboard mode. > > NSComboBox is so close. That one sentence in the docs is so tantalizing! > > Thanks, > > Casey McDermott > > Turtle Creek Software > http://www.

Re: NSComboBox

2018-07-26 Thread Alastair Houghton
side to use as an additional option (handy for > short lists > or if the user is already mousing). Basically, that is the same approach we > use/used in the > C++ version (PowerPlant, Carbon). > > But, getting all the details to work just right has been extremely difficult. >

Re: NSComboBox

2018-07-25 Thread Richard Charles
> On Jul 25, 2018, at 6:18 PM, Casey McDermott wrote: > > One big beef I have is that it's not possible to step into Cocoa source, > unlike PowerPlant > or MFC. It makes it much harder to understand what's going on inside Cocoa. Check out the Cocotron source. Sometimes you can gain insight i

Re: NSComboBox

2018-07-25 Thread Casey McDermott
better for that, but not when in hands-on-keyboard mode. NSComboBox is so close. That one sentence in the docs is so tantalizing! Thanks, Casey McDermott Turtle Creek Software http://www.turtlesoft.com 607 220-4514 On Wed, 7/25/18, Quincey Morris

Re: NSComboBox

2018-07-25 Thread Casey McDermott
mousing). Basically, that is the same approach we use/used in the C++ version (PowerPlant, Carbon). But, getting all the details to work just right has been extremely difficult. NSComboBox is so close, and so much less futzing. Also, the combo box in Windows MFC does exactly what we

Re: NSComboBox

2018-07-25 Thread Quincey Morris
On Jul 25, 2018, at 15:40 , Casey McDermott wrote: > > I forgot to mention that the lists may contain 10,000s of items. Maybe > 100,000s. > Typing to select from NSPopUpButton works OK for short lists. I just made a > test > popup with 300 items and it's already awkward. 10K would be absurd

Re: NSComboBox

2018-07-25 Thread Sandor Szatmari
presented. Then everything worked as expected. If you know the index of the string you want to autocomplete to you set ‘index’ to that, well…, index. Sandor > On Jul 25, 2018, at 18:56, Keary Suska wrote: > > NSComboBox is just a suped-up NSTextField, so you can some sort of validat

Re: NSComboBox

2018-07-25 Thread Keary Suska
NSComboBox is just a suped-up NSTextField, so you can some sort of validation so you can prevent the user from exiting the field if they don’t enter an acceptable value. The most basic approach is delegation and doing the check in -control:textShouldEndEditing: HTH, Keary Suska Esoteritech

Re: NSComboBox

2018-07-25 Thread Casey McDermott
ld" article by Tog may be on one of the developer CDs. I can't find it online. It explained this use case very well, and interface to solve it. It was a major reason why we switched from Excel templates to a C++ app. NSComboBox is close, but we need it confined to existing items. Tha

Re: NSComboBox

2018-07-25 Thread Rob Petrovec
I was going to suggest the same thing. NSPopUpButton should do what you want. —Rob > On Jul 25, 2018, at 12:51 PM, Jens Alfke wrote: > > > >> On Jul 25, 2018, at 10:45 AM, Casey McDermott wrote: >> >> The goal is to auto-fill an account from what they type, and ignore typing >> if not a

Re: NSComboBox

2018-07-25 Thread Jens Alfke
> On Jul 25, 2018, at 10:45 AM, Casey McDermott wrote: > > The goal is to auto-fill an account from what they type, and ignore typing if > not a match. That sounds like the regular behavior of NSPopUpButton: after clicking to pop up the menu, you can type-select items from it. (Although it

Re: NSComboBox

2018-07-25 Thread John Harte
> On Jul 25, 2018, at 12:45 PM, Casey McDermott wrote: > > Apple's instructions for combo boxes say: "Note that while you can construct > your NSComboBox > so that users are restricted to only selecting items from the combo box’s > pop-up list, > this isn’t

NSComboBox

2018-07-25 Thread Casey McDermott
Apple's instructions for combo boxes say: "Note that while you can construct your NSComboBox so that users are restricted to only selecting items from the combo box’s pop-up list, this isn’t the combo box’s normal behavior." For our use, we definitely want to restrict NSC

Re: NSComboBox -comboBox:completedString: not called

2018-03-13 Thread Greg Weston
> So, to answer my own question, I can "get this to work" using a custom > NSComboBoxCell > subclass, implementing -completedString. > > Having seen this in action I must confess this is a Bad Idea™. You’re describing long-standing documented behavior and the correct approach to achieve the a

Re: NSComboBox -comboBox:completedString: not called

2018-03-13 Thread Markus Spoettl
On 3/13/18 09:42, Markus Spoettl wrote: I have trouble with NSComboBox in that the data source method -comboBox:completedString: is not getting called. The combo box in question uses bindings for "Value" and "Content Values", so I have no other data source met

NSComboBox -comboBox:completedString: not called

2018-03-13 Thread Markus Spoettl
I have trouble with NSComboBox in that the data source method -comboBox:completedString: is not getting called. The combo box in question uses bindings for "Value" and "Content Values", so I have no other data source methods implemented and -usesDataSource is NO (when that i

Re: Focus ring of NSComboBox and text field visible through overlaid views

2017-06-30 Thread Navneet Kumar
Hi, Thanks for the valuable insights. I think I’m gonna go with child windows and not sheets as I have to support os x 10.7. Thanks again, Navneet > On 30-Jun-2017, at 11:25 PM, Quincey Morris > wrote: > > On Jun 30, 2017, at 08:07 , Navneet Kumar > wrote: >> >> I

Re: Focus ring of NSComboBox and text field visible through overlaid views

2017-06-30 Thread Quincey Morris
On Jun 30, 2017, at 08:07 , Navneet Kumar wrote: > > I also have a small project uploaded […] > > Which shows both the focus ring problem and tooltip problem I don’t know why, but the focus ring doesn’t bleed through for me (Xcode 9, macOS 10.12). However, I think your solution in the test pr

Re: Focus ring of NSComboBox and text field visible through overlaid views

2017-06-30 Thread Navneet Kumar
Hi, Thanks for the reply. Yes I admit that question was at best vague. And the last couple of lines of your email says correctly, that I have to float alerts on top of the rest of the window contents. But not just alerts…. Here is the scenario: I have the window with a lot of UI elements like a

Re: Focus ring of NSComboBox and text field visible through overlaid views

2017-06-27 Thread Quincey Morris
On Jun 27, 2017, at 06:57 , Navneet Kumar wrote: > > A custom view when overlapped with a transparent view (subview to window’s > contentView) and a subview on top of transparent view, also shows the custom > cursor and tooltip assigned to the custom view. Even when the custom view’s > trackin

Re: Focus ring of NSComboBox and text field visible through overlaid views

2017-06-27 Thread Navneet Kumar
Hi everyone, The problem is still there. The problem is everywhere in my project. A custom view when overlapped with a transparent view (subview to window’s contentView) and a subview on top of transparent view, also shows the custom cursor and tooltip assigned to the custom view. Even when the

Focus ring of NSComboBox and text field visible through overlaid views

2017-05-16 Thread Navneet Kumar
Hi, I have the following view hierarchy in question: self.window.contentView --subview--> Transparent view (in code, main purpose to have a drop shadow for subview) of same size with setWantsLayer and a drop shadow, also acceptsFirstResponder --subview--> a smaller centred view (subclassed for

Re: Need some NSComboBox debugging help

2016-08-05 Thread Quincey Morris
On Aug 5, 2016, at 07:03 , Keary Suska wrote: > > One would think that it either has to do with the assignment of the delegate > or the assignment of the outlets/properties of the delegate, or both. I would add one other thing to this “smells like” list: duplicate controls. If you somehow ende

Re: Need some NSComboBox debugging help

2016-08-05 Thread Keary Suska
> On Aug 4, 2016, at 11:34 PM, livinginlosange...@mac.com wrote: > > I have 8 NSComboBoxes in my application organzied into 4 pairs, each pair > sharing an NSComboBox delegate. I have had some users periodically say that > the combo-boxes get confused. ComboBox A will wrongly d

Need some NSComboBox debugging help

2016-08-04 Thread livinginlosangeles
I have 8 NSComboBoxes in my application organzied into 4 pairs, each pair sharing an NSComboBox delegate. I have had some users periodically say that the combo-boxes get confused. ComboBox A will wrongly display ComboBox B’s data. I have scoured my code for an places where I might perform an

Re: NSComboBox in the tab ring

2014-10-29 Thread Luther Baker
Yep - I ended up going with a Pop Up Button for the reason's you've both mentioned. Thanks for replying with a bit of explanation and suggestions! -Luther On Wed, Oct 29, 2014 at 3:16 PM, Graham Cox wrote: > > On 19 Oct 2014, at 3:14 pm, Luther Baker wrote: > > > I don't want to allow the use

Re: NSComboBox in the tab ring

2014-10-29 Thread Graham Cox
On 19 Oct 2014, at 3:14 pm, Luther Baker wrote: > I don't want to allow the user to type randomly into the text > field It *is* a text field. Sounds like what you really want is a pop-up menu button. --Graham ___ Cocoa-dev mailing list (Cocoa-de

Re: NSComboBox in the tab ring

2014-10-29 Thread Fritz Anderson
On 18 Oct 2014, at 11:14 PM, Luther Baker wrote: > > Is it possible to keep an NSComboBox in the tabbing ring if I set its > "Behavior" to "Selectable". Tabbing reaches the control if the textfield is > editable but I don't want to allow the user to type r

NSComboBox in the tab ring

2014-10-18 Thread Luther Baker
Is it possible to keep an NSComboBox in the tabbing ring if I set its "Behavior" to "Selectable". Tabbing reaches the control if the textfield is editable but I don't want to allow the user to type randomly into the text field ... but unfortunately, once I remove its edita

Re: Problems with NSComboBox delegate

2014-06-26 Thread Scott Ribe
The notification's "object". On Jun 26, 2014, at 12:44 PM, William Squires wrote: > Okay, now that my email works again... :) > I can understand how to code my NSComboBox data source methods (my > NSWindowController subclass is set as both the data source and the deleg

Re: Problems with NSComboBox delegate

2014-06-26 Thread Quincey Morris
On Jun 26, 2014, at 11:44 , William Squires wrote: > the delegate method (of interest): > > -(void)comboBoxSelectionDidChange:(NSNotification *)notification > > doesn't pass the reference to the NSComboBox whose selection changed, It does. It’s usual for these sorts of d

Problems with NSComboBox delegate

2014-06-26 Thread William Squires
Okay, now that my email works again... :) I can understand how to code my NSComboBox data source methods (my NSWindowController subclass is set as both the data source and the delegate), and the outlets set up as such in IB. The data source methods to implement: -(NSInteger

Re: NSComboBox and sorted list

2014-04-26 Thread Frédéric Testuz
Le 18 avr. 2014 à 13:32, Frédéric Testuz a écrit : > > I have a typical CoreData application which display my entities in an > NSTableView with an NSArrayController and a panel to edit the selected item. > > I have an entity Book with a NSString attribute type displayed in an

NSComboBox and sorted list

2014-04-18 Thread Frédéric Testuz
Hello, I have a typical CoreData application which display my entities in an NSTableView with an NSArrayController and a panel to edit the selected item. I have an entity Book with a NSString attribute type displayed in an NSComboBox. I want the drop down list of the combo box to display the

Re: NSComboBox and Multiple Selection

2013-02-12 Thread Keary Suska
On Feb 12, 2013, at 1:07 AM, livinginlosange...@mac.com wrote: > I have an NSCombox bound to an NSArrayController's "name" attribute. If I > choose multiple items and click on the pop up button in the NSComboxBox, the > NSComboBox clears the name value for all of t

NSComboBox and Multiple Selection

2013-02-12 Thread livinginlosangeles
I have an NSCombox bound to an NSArrayController's "name" attribute. If I choose multiple items and click on the pop up button in the NSComboxBox, the NSComboBox clears the name value for all of the different items' name attribute. This is less than ideal. I don't nec

Re: NSComboBox, binding, multiple selection, multiple values == trouble

2013-01-23 Thread Markus Spoettl
On 1/23/13 10:25 PM, Keary Suska wrote: This works reasonably well but I wonder how others have fixed this problem. I feel returning NSMultipleValuesMarker is a hack which works only because NSComboBox thinks it's a legitimate return value (or doesn't care). The fact that I c

Re: NSComboBox, binding, multiple selection, multiple values == trouble

2013-01-23 Thread Keary Suska
I'm editing a multi-selection that has property values are different for > individual model objects in the selection, I get an undesired behavior from > NSComboBox: > > When I tab over an NSComboBox which displays the multiple-values placeholder, > upon exiting the combo box, the

Re: NSComboBox, binding, multiple selection, multiple values == trouble

2013-01-23 Thread Markus Spoettl
On 1/23/13 9:51 PM, Quincey Morris wrote: When I'm editing a multi-selection that has property values are different for individual model objects in the selection, I get an undesired behavior from NSComboBox: When I tab over an NSComboBox which displays the multiple-values placeholder,

Re: NSComboBox, binding, multiple selection, multiple values == trouble

2013-01-23 Thread Quincey Morris
I'm editing a multi-selection that has property values are different for > individual model objects in the selection, I get an undesired behavior from > NSComboBox: > > When I tab over an NSComboBox which displays the multiple-values placeholder, > upon exiting the combo box, the

NSComboBox, binding, multiple selection, multiple values == trouble

2013-01-23 Thread Markus Spoettl
ferent for individual model objects in the selection, I get an undesired behavior from NSComboBox: When I tab over an NSComboBox which displays the multiple-values placeholder, upon exiting the combo box, the corresponding property for all selected objects is nil'd. (BAD) When I do the sam

Re: NSComboBox with NSNumberFormatter DataSource works but not Content binding

2012-09-13 Thread Quincey Morris
On Sep 4, 2012, at 23:12 , Luke Evans wrote: > I understand that I must present NSDecimalNumber objects for list content and > I'd prefer to use bindings for this, Why must you use NSDecimalNumber instead of NSNumber? > so I create a simple NSArray of NSDecimalNumber values and provide this as

NSComboBox with NSNumberFormatter DataSource works but not Content binding

2012-09-13 Thread Luke Evans
Here's a little mystery that maybe someone can help me with… I have an NSComboBox for numbers (and hence with an NSNumberFormatter attached to its text field) for which I'd like to populate some items in the drop down list. I understand that I must present NSDecimalNumber object

NSComboBox fails to notify delegate?

2012-07-09 Thread Marc Respass
e delegate methods. I even subclassed NSComboBox to override mouseDown: to see what the backtrace shows and what I see is that when it works, a notification is sent, when it fails, the notification is not sent. Does anyone have any idea about what I could be doing wrong? It's killing me

Re: NSComboBox

2012-04-24 Thread koko
I changed to NSPopUpButton and use: [self addItemWithTitle:@"Title"]; [[self lastItem] setImage:image]; Easy, works great. Are you saying I could have made these calls on an instance of NSComboBox? I do not see addItem, lastItem or setImage in NSComboBox. How would

Re: NSComboBox

2012-04-24 Thread Erik Stainsby
The menu portion of a combo box is just that an NSMenu so you ought to be able to everything you can with a regular menu item. Erik On 2012-04-23, at 5:53 PM, koko wrote: > I have been spelunking all afternoon with mixed results. Some say I can put > an image and text in an NSComboBoxCell.

NSComboBox

2012-04-24 Thread koko
I have been spelunking all afternoon with mixed results. Some say I can put an image and text in an NSComboBoxCell. Can this be done … put an image and text in an NSComboBoxCell? I can find no examples and would appreciate one if possible. -koko __

Re: NSComboBox in NSTableView behaving strangely

2011-07-06 Thread Devarshi Kulshreshtha
same problem exists in NSPopUpButtonCell, it is changing the value in list which appears on clicking it, as shown - Original list: http://dl.dropbox.com/u/259/unique%20data.png Changed list: http://dl.dropbox.com/u/259/redundant%20data.png Bindings used in case of NSPopUpButtonCell are:

Re: NSComboBox in NSTableView behaving strangely

2011-07-05 Thread Quincey Morris
On Jul 5, 2011, at 04:11, Devarshi Kulshreshtha wrote: > When I am selecting a value in dropdown list of combobox cell, it is > changing the value of previously selected value to newly selected value, as > shown in below figure(s) - A combo box is a kind of text field, not a kind of menu, so yes

NSComboBox in NSTableView behaving strangely

2011-07-05 Thread Devarshi Kulshreshtha
Hi All, I am trying a sample application, which enlists some entities to purchase and their respective cost. In data model I created two entities: 1. Daily Transaction (Attribute: cost, Relationship: relatedEntity) 2. Entity (Attribute: name, Relationship: dailyTransactions) Controls used in XI

Re: NSComboBox bound to NSMutableArray of NSMutableDictionary with NSArrayController?

2010-10-07 Thread Laurent Daudelin
On Oct 7, 2010, at 15:30, Quincey Morris wrote: > On Oct 7, 2010, at 15:14, Laurent Daudelin wrote: > >> I just want to have a pre-determined list of items but I'd like the user to >> have the ability to add new items. That's why I chose the NSComboBox but I >&g

Re: NSComboBox bound to NSMutableArray of NSMutableDictionary with NSArrayController?

2010-10-07 Thread Quincey Morris
On Oct 7, 2010, at 15:14, Laurent Daudelin wrote: > I just want to have a pre-determined list of items but I'd like the user to > have the ability to add new items. That's why I chose the NSComboBox but I > see one problem with it. If the user adds one item, that's

Re: NSComboBox bound to NSMutableArray of NSMutableDictionary with NSArrayController?

2010-10-07 Thread Laurent Daudelin
Doesn't display anything means it doesn't show up anything from the array. I'll think about it. I just want to have a pre-determined list of items but I'd like the user to have the ability to add new items. That's why I chose the NSComboBox but I see one problem with

Re: NSComboBox bound to NSMutableArray of NSMutableDictionary with NSArrayController?

2010-10-07 Thread Quincey Morris
On Oct 7, 2010, at 12:32, Laurent Daudelin wrote: > My NSMutableDictionary keys are Name and Service. I bound the > NSArrayController to my NSMutableArray ivar. I then set my NSComboBox content > to NSArrayController.arrangedObjects and NSComboBox content

NSComboBox bound to NSMutableArray of NSMutableDictionary with NSArrayController?

2010-10-07 Thread Laurent Daudelin
I did google around, read the doc, but I'm not sure if I can bind an NSComboBox to an NSMutableArray of NSMutableDictionary. Is it possible? My NSMutableDictionary keys are Name and Service. I bound the NSArrayController to my NSMutableArray ivar. I then set my NSComboBox conte

Re: Add Tick Mark in NSCombobox List

2010-07-18 Thread Uli Kusterer
Am 17.07.2010 um 11:20 schrieb Nishad Peruvana: > I am customize NSComboBox such way that the Item List should show a 'Tick' > mark on left side of the item currently selected. Can anybody direct me to > achieve this task. You have the wrong control. If you want

Re: Add Tick Mark in NSCombobox List

2010-07-17 Thread Kyle Sluder
On Sat, Jul 17, 2010 at 2:20 AM, Nishad Peruvana wrote: > I am customize NSComboBox such way that the Item List should show a 'Tick' > mark on left side of the item currently selected. Can anybody direct me to > achieve this task. NSComboBoxes do not behave this way. What

Add Tick Mark in NSCombobox List

2010-07-17 Thread Nishad Peruvana
Hi All, I am customize NSComboBox such way that the Item List should show a 'Tick' mark on left side of the item currently selected. Can anybody direct me to achieve this task. Thanks In Advance, Nishad Kumar P

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Jim Correia
On Mar 19, 2010, at 3:21 PM, H. Miersch wrote: > just had another surprise: i inserted NSLogs into the method that initializes > the array and into -numberOfItemsInComboBox, trying to see the contents of my > array and find out why -numberOfItemsInComboBox returns zero. the surprise > was that

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Kyle Sluder
On Fri, Mar 19, 2010 at 12:21 PM, H. Miersch wrote: > just had another surprise: i inserted NSLogs into the method that initializes > the array and into -numberOfItemsInComboBox, trying to see the contents of my > array and find out why -numberOfItemsInComboBox returns zero. the surprise > was

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread H. Miersch
just had another surprise: i inserted NSLogs into the method that initializes the array and into -numberOfItemsInComboBox, trying to see the contents of my array and find out why -numberOfItemsInComboBox returns zero. the surprise was that -numberOfItemsInComboBox is called BEFORE the method tha

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Bill Hernandez
On Mar 19, 2010, at 8:45 AM, H. Miersch wrote: > My theory is that there's something wrong with the array. Either it isn't > initialized properly or the methods can't access it or something. Gonna try > self.symbols instead of symbols, see if that changes anything... Another thing I forgot to

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Bill Hernandez
H. Miersch wrote, >> uncaught exception 'NSRangeException', reason: '*** -[NSCFArray >> objectAtIndex:]: index (-1 (or possibly larger)) beyond bounds (5)' I was running into something similar this morning, and I traced it back to the fact that I had set the type of a variable to NSUInteger, an

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Bill Hernandez
On Mar 19, 2010, at 7:31 AM, Jim Correia wrote: >> uncaught exception 'NSRangeException', reason: '*** -[NSCFArray >> objectAtIndex:]: index (-1 (or possibly larger)) beyond bounds (5)' I was running into something similar this morning, and I traced it back to the fact that I had set the type

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread H. Miersch
Did you try sending -reloadData to the combo box after setting up the data source and before trying to access items in the combo box? No, because I set up the data source in IB. My theory is that there's something wrong with the array. Either it isn't initialized properly or the methods can't

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Jeremy Pereira
On 19 Mar 2010, at 12:45, H. Miersch wrote: >> >> It appears you are sending -selectItemAtIndex: to the combo box, > > Correct. I tell it to select the first item (index 0). And when I put the > list if items in the nib file (no data source) it works. > > But this morning I quickly inserted a

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread H. Miersch
It appears you are sending -selectItemAtIndex: to the combo box, Correct. I tell it to select the first item (index 0). And when I put the list if items in the nib file (no data source) it works. But this morning I quickly inserted an nslog to find out how big the symbols array is, and it

Re: NSComboBox problem in 10.6.2

2010-03-19 Thread Jim Correia
On Mar 18, 2010, at 3:38 PM, H. Miersch wrote: > when i try to launch the app from within xcode, the console shows the > following: > > 2010-03-18 19:26:28.515 StoX[63999:a0f] An uncaught exception was raised > 2010-03-18 19:26:28.534 StoX[63999:a0f] *** -[NSCFArray objectAtIndex:]: > index (-1

Re: NSComboBox problem in 10.6.2

2010-03-18 Thread Scott Anguish
it keeps throwing an exception, and i can't find out why. > I've put the following methods in my appcontroller: > > -(NSInteger)numberOfItemsInComboBox:(NSComboBox *)aComboBox { > return (NSInteger)[symbols count]; > } > > -(id)comboBox:(NSComboBox *)sender ob

NSComboBox problem in 10.6.2

2010-03-18 Thread H. Miersch
hi. I have a window with 3 comboboxes. one of them uses a data source. the problem is that it keeps throwing an exception, and i can't find out why. I've put the following methods in my appcontroller: -(NSInteger)numberOfItemsInComboBox:(NSComboBox *)aComboBox { return

Re: setWidth pop-up list of NSComboBox

2010-02-13 Thread Steven Degutis
NSComboBox is an ordinary control just like any other. Thus, you can set it's frame with the -setFrame: method of NSView, from which it inherits. However, changing the width of this kind of control to accommodate its contents is pretty uncommon in standard Cocoa apps. -Steven On Thu, F

setWidth pop-up list of NSComboBox

2010-02-11 Thread John Yeh
How to change the width of the pop-up list in NSComboBox? When a long string is added to the NSComboBox, it can't displayed completely. how to extend the width of the pop-up list? -John___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

NSComboBox or Better Choice

2010-01-25 Thread David Blanton
I would like to display an image and descriptive text is some sort of popup list such as an NSComboBox. Can the NSComboBoxCell draw method be overridden to display an image along with text? Or, what is the best way to accomplish a pop up list of images and descriptive text? -db

Re: binding NSComboBox default selection

2010-01-07 Thread Mazen M. Abdel-Rahman
From: Quincey Morris Subject: Re: binding NSComboBox default selection To: cocoa-dev Message-ID: Content-Type: text/plain; charset=us-ascii > > > On Jan 7, 2010, at 09:02, Mazen M. Abdel-Rahman wrote: > >> NSString * defaultSelectionValue = [myDS defaultSelectionValue];

Re: binding NSComboBox default selection

2010-01-07 Thread Quincey Morris
aultSelectionIndex]; > > [self setObjectValue:[myDS comboBox:self > objectValueForItemAtIndex:defaultSelectionIndex]]; > > 'self' is a subclass of NSCombobox. 'myDS' is the datasource - which > contains has information of what the default selection

binding NSComboBox default selection

2010-01-07 Thread Mazen M. Abdel-Rahman
Hi All, I have an NSComboBox that is bound to a datasource. I want to programatically select a default selection when the sheet the combobox is in is first displayed. To do so I am doing the following: NSString * defaultSelectionValue = [myDS defaultSelectionValue]; NSUInteger

Re: Custom NSComboBox

2009-10-15 Thread Graham Cox
On 16/10/2009, at 1:42 PM, Symadept wrote: Can anybody put some light on this. Well, it might help if you format your email so it's readable to some extent. I took one look at it and passed it over because I'm not going to bother unravelling the unformatted mess to find out what it is

Re: Custom NSComboBox

2009-10-15 Thread Symadept
Hi, Can anybody put some light on this. Regards Mustafa On Wed, Oct 14, 2009 at 7:09 PM, Symadept wrote: > Hi, I am designing a custom NSComboBox to display the rect image as some > ComboboxBg.png and set foreground (text) color to Red. To render image I am > doing the followi

Custom NSComboBox

2009-10-14 Thread Symadept
Hi, I am designing a custom NSComboBox to display the rect image as some ComboboxBg.png and set foreground (text) color to Red. To render image I am doing the following things. @interface CustomComboBoxCell : NSComboBoxCell { } @end @implementation CustomComboBoxCell - (void)drawWithFrame:(NSRect

Re: I think there's a problem in the documentation for NSComboBox

2009-10-07 Thread Scott Anguish
Hi, > I was implementing the data source for an NSComboBox when I noticed > something wasn't right with the documentation: > > There is a page in the combo box programming topics that lists which methods > a combo box data source should implement. This page was last mod

Re: I think there's a problem in the documentation for NSComboBox

2009-10-07 Thread Thomas Clement
On Oct 7, 2009, at 12:22 PM, Graham Cox wrote: the only way to know for sure is to have some knowledge/memory/a copy of earlier documentation, which is useless for newbies (and those of use whose memories would rather not accrete that sort of knowledge) wanting to target < 10.6 Or you can

Re: I think there's a problem in the documentation for NSComboBox

2009-10-07 Thread Graham Cox
On 07/10/2009, at 9:14 PM, Rui Pacheco wrote: So, were the data source methods available before 10.6 (I want my app to run on 10.5) and the data source reference is wrong or was the conceptual page for the combo box updated but not the revision date? Did anyone used the data source method

I think there's a problem in the documentation for NSComboBox

2009-10-07 Thread Rui Pacheco
Hi, I was implementing the data source for an NSComboBox when I noticed something wasn't right with the documentation: There is a page in the combo box programming topics that lists which methods a combo box data source should implement. This page was last modified in 2002:

How to change the background color of dropdown list of NSComboBox

2009-09-23 Thread Symadept
Hi, Can anybody let me know how to solve these issues? 1. How to change the color of the dropdown list of NSComboBox control 2. And I am overriding the background image of the ComboBox by DrawWithFrame method. But once I selected the item from the list it is not shown in the ComboBox. Once I

Re: NSComboBox Bindings

2009-02-26 Thread Jerry Krinock
On 2009 Feb 26, at 12:26, Walker Argendeli wrote: *** -[NSCFString managedObjectContext]: unrecognized selector sent to instance 0x19a410 This log is telling you that Cocoa is getting a string returned when it expected a managed object. Study the problem with this clue in mind. _

Re: NSComboBox Bindings

2009-02-26 Thread Walker Argendeli
eas? FROM : Jerry Krinock DATE : Thu Feb 26 14:25:18 2009 On 2009 Feb 25, at 17:08, Walker Argendeli wrote: > With an NSPopUpButton, you can bind content to Kind.arrangedObjects, > content values to Kind.arrangedObjects.title, and selected object to > Item.kind. I want the functionality of an

Re: NSComboBox Bindings

2009-02-26 Thread Jerry Krinock
On 2009 Feb 25, at 17:08, Walker Argendeli wrote: With an NSPopUpButton, you can bind content to Kind.arrangedObjects, content values to Kind.arrangedObjects.title, and selected object to Item.kind. I want the functionality of an NSComboBox, however, which only has content and content

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Paul Sanders
" To: "Paul Sanders" Cc: Sent: Monday, February 23, 2009 12:16 PM Subject: Re: Programmatically opening an NSComboBox list On Feb 23, 2009, at 5:45 AM, Paul Sanders wrote: > Thank you Andy, this looks useful. I can't *actually* get it to > function > (it will o

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Andy Lee
On Feb 23, 2009, at 5:45 AM, Paul Sanders wrote: Thank you Andy, this looks useful. I can't *actually* get it to function (it will only inspect views contained within its own windows for some reason), but I'll talk to the F_Script guys about that. I took a look and realized I should have poi

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Paul Sanders
- Original Message - From: "Kyle Sluder" To: "Paul Sanders" Cc: "Andy Lee" ; Sent: Monday, February 23, 2009 10:58 AM Subject: Re: Programmatically opening an NSComboBox list On Mon, Feb 23, 2009 at 5:45 AM, Paul Sanders wrote: > I'm also looking for

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Kyle Sluder
On Mon, Feb 23, 2009 at 5:45 AM, Paul Sanders wrote: > I'm also looking for a way to trace messages sent to the various objects > within my app, if anybody knows how to do that. Some sort of filtering > might be in order! Check out TN2124, Mac OS X Debugging Magic: http://developer.apple.com/tec

Re: Programmatically opening an NSComboBox list

2009-02-23 Thread Paul Sanders
thin my app, if anybody knows how to do that. Some sort of filtering might be in order! Paul. - Original Message - From: "Andy Lee" To: "Paul Sanders" Cc: "Peter Hudson" ; Sent: Sunday, February 22, 2009 6:28 PM Subject: Re: Programmatically opening an N

Re: Programmatically opening an NSComboBox list

2009-02-22 Thread Kyle Sluder
On Sat, Feb 21, 2009 at 7:17 AM, Peter Hudson wrote: > I notice from the docs that the button and text field are encapsulated in an > NSComboBoxCell. Have checked the cell docs - can't see any means to get to > the button. Probably because there is no "button", per se. Unlike views, which exist

Re: Programmatically opening an NSComboBox list

2009-02-22 Thread Kyle Sluder
On Sat, Feb 21, 2009 at 11:11 AM, Paul Sanders wrote: > And indeed how do you programatically close it, which is what I would like > to do. The problem with programmatically closing the drop-down comes from the way that NSComboBoxCell might handle mouse tracking. If the cell runs the runloop its

Re: Programmatically opening an NSComboBox list

2009-02-22 Thread Andy Lee
On Feb 21, 2009, at 11:11 AM, Paul Sanders wrote: And a question: is there a utility, similar to Spy++ under windows, Which can show you the window and view hierarchy of a running app? I find Spy++ extremely useful on occasion when doing Windows development. I think F-Script can do that.

Re: Programmatically opening an NSComboBox list

2009-02-22 Thread Paul Sanders
useful on occasion when doing Windows development. Regards, Paul Sanders. - Original Message - From: "Peter Hudson" To: Sent: Saturday, February 21, 2009 12:17 PM Subject: Programmatically opening an NSComboBox list Have trawled the archives and can find only a suggestion to

Programmatically opening an NSComboBox list

2009-02-21 Thread Peter Hudson
Have trawled the archives and can find only a suggestion to do a performClick on the combo ( which fails ) or an undocumented method. I notice from the docs that the button and text field are encapsulated in an NSComboBoxCell. Have checked the cell docs - can't see any means to get to the

Re: NSComboBox list is incorrect size on first dropdown

2008-11-25 Thread Ken Ferry
lt;[EMAIL PROTECTED]> To: Russ <[EMAIL PROTECTED]> Sent: Tuesday, November 25, 2008 12:11:21 PM Subject: Re: NSComboBox list is incorrect size on first dropdown The workaround would be to do the work less lazily, like at - awakeFromNib time. -Ken On Nov 25, 2008, at 8:30 AM, Russ <

  1   2   >