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,
turtlesoft.com
> 607 220-4514
>
> ----
> On Wed, 7/25/18, Quincey Morris wrote:
>
> Subject: Re: NSComboBox
> To: "Casey McDermott"
> Cc: "Cocoa-Dev List"
> Date: Wednesday, July 25, 2018, 7:55 PM
>
&
On 26 Jul 2018, at 01:18, Casey McDermott wrote:
>
> We have a 1/2 decent version working right now based on NSTextField. It shows
> a scrolling table
> with a NSWindowController, and selects from the table (and beeps if not
> there). It also
> has a NSPopUpButton on the side to use as an addit
> 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
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
ware
http://www.turtlesoft.com
607 220-4514
On Wed, 7/25/18, Sandor Szatmari wrote:
Subject: Re: NSComboBox
To: "Keary Suska"
Cc: "Casey McDermott" , "Cocoa-Dev (Apple)"
Date: Wednesday, July 25, 2018, 7:40 PM
I have done
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
omboBox is close, but we need it confined to existing items.
>>
>> Thanks,
>>
>> Casey McDermott
>>
>> Turtle Creek Software
>> http://www.turtlesoft.com
>> 607 220-4514
>>
>>
>> On W
sey McDermott
>
> Turtle Creek Software
> http://www.turtlesoft.com
> 607 220-4514
>
>
> On Wed, 7/25/18, Jens Alfke wrote:
>
> Subject: Re: NSComboBox
> To: "Casey McDermott"
> Cc: cocoa-dev@lists.appl
nks,
Casey McDermott
Turtle Creek Software
http://www.turtlesoft.com
607 220-4514
On Wed, 7/25/18, Jens Alfke wrote:
Subject: Re: NSComboBox
To: "Casey McDermott"
Cc: cocoa-dev@lists.apple.com
Date: Wednesday, July 25, 2018, 2:51 P
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
> 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
> 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 the combo box’s normal behavior."
> 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
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 methods implemented and -usesDataSource
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
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
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 randomly into the text
> field ... but unf
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. I w
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 the different items' name
> att
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 can't clear properties
On Jan 23, 2013, at 10:28 AM, Markus Spoettl wrote:
> in my app, I can edit a selection of model objects in a window which that
> consists of NSTextFields and NSComboBoxes to edit model properties, all via
> binding to an NSArrayController's selection proxy.
>
> When I'm editing a multi-select
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,
upon exiti
On Jan 23, 2013, at 09:28 , Markus Spoettl wrote:
> in my app, I can edit a selection of model objects in a window which that
> consists of NSTextFields and NSComboBoxes to edit model properties, all via
> binding to an NSArrayController's selection proxy.
>
> When I'm editing a multi-selecti
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
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 I use 'the m
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.
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:
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
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
>> see one problem with it. If the u
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 only a string and
> it won't
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 it. If the user adds one ite
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 values to
> NSArrayController.arrangedO
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
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
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
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
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
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
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
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
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
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
what does the symbols array contain? are you sure it’s the length you think it
is? and what is index? It says −1 or possibly larger.
On Mar 18, 2010, at 3:38 PM, H. Miersch wrote:
> hi.
> I have a window with 3 comboboxes. one of them uses a data source. the
> problem is that it keeps throwing
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.
_
I bound NSComboBox's value to Item.arrangedObjects.kind, and the
console logs this when I try to modify the kind in my app:
*** -[NSCFString managedObjectContext]: unrecognized selector sent to
instance 0x19a410
One suggestion I've received is to subclass it. Any further ideas?
FROM : Jerry
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 val
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 <
Um, nevermind, wrong OS for the fix. Heh heh!
This will be fixed in 10.6. In 10.5 and earlier, that's just too late, sorry!
-Ken
On Tue, Nov 25, 2008 at 7:54 AM, Ken Ferry <[EMAIL PROTECTED]> wrote:
> I cannot reproduce this in a test app. The behavior was changed for
> 10.5 - before that com
I cannot reproduce this in a test app. The behavior was changed for
10.5 - before that comboBoxWillPopUp was too late to modify anything
impacting the drop down position of the combo box.
What OS are you on?
If you could file a bug with a test app, that would be very helpful.
-Ken
Cocoa Framewo
On Oct 16, 2008, at 2:07 AM, Joseph Yu wrote:
When the combobox change the selection,I want to do something.
How to do this?
I didn't see any callback function.
Have you searched/read the documentation? This is considered "Cocoa
Fundamentals":
http://developer.apple.com/documentation/C
On Oct 13, 2008, at 08:19, Randall Meadows wrote:
I'm helping someone with a problem concerning NSComboBox whose
contents come from a binding to an NSArrayController, and is set to
autocomplete.
The behavior: Window opens with combobox populated from its
binding. Let's say the contents a
52 matches
Mail list logo