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 ass

Re: validateUserInterfaceItem not called

2016-07-23 Thread livinginlosangeles
Ok. That makes so much sense. This was a succinct explanation. On Jul 23, 2016, at 8:40 PM, Ken Thomases wrote: > On Jul 23, 2016, at 10:12 PM, livinginlosange...@mac.com wrote: >> >> I have a simple AppDelegate that instantiates an NSWindowController and >> Window. I have an NSMenuItem that i

validateUserInterfaceItem not called

2016-07-23 Thread livinginlosangeles
I have a simple AppDelegate that instantiates an NSWindowController and Window. I have an NSMenuItem that invokes an IBAction on the firstResponder in my xib. This works as expected. When I press command+1, the IBAction fires. However, I specified that my NSWindowController use the ‘NSUserInterf

Re: NSDocument not displaying save prompt on dirty document

2016-06-04 Thread livinginlosangeles
Ok. The issue was that the auto-save prompt had disappeared when I was closing a dirty nsdocument. I added a nswindowcontroller to my nsdocument using addWindowController. I needed to add setShouldCloseDocument to my main nswindowcontroller, otherwise my document wouldn’t show the prompt. Patri

Re: NSDocument not displaying save prompt on dirty document

2016-05-29 Thread livinginlosangeles
Ok. The issue was that the auto-save prompt had disappeared when I was closing a dirty nsdocument. I added a nswindowcontroller to my nsdocument using addWindowController. I needed to add setShouldCloseDocument to my main nswindowcontroller, otherwise my document wouldn’t show the prompt. Patri

Re: NSDocument not displaying save prompt on dirty document

2016-05-24 Thread livinginlosangeles
I never knew that was an option. I turned it on. Restarted my application, but still no prompt to save my dirty NSDocument when I close it. Any further ideas? On May 24, 2016, at 12:29 AM, Graham Cox wrote: > >> On 24 May 2016, at 3:52 PM, livinginlosange...@mac.com wrote: >> >> I have an NSD

NSDocument not displaying save prompt on dirty document

2016-05-23 Thread livinginlosangeles
I have an NSDocument subclass that is no longer displaying a save prompt when I close a dirty document using the close: IBAction. My document is marked as dirty and I am using the NSDocument’s NSUndoManager. I am not doing anything behind the document’s back by setting the update count, etc. Wou

Debugging Faux Delegate calls

2015-10-19 Thread livinginlosangeles
I have 4 NSComboBoxes in a view. I have a controller class which acts as the delegate for these ComboBoxes. For some reason, after a period of time, and I am trying to figure out why this is happening, when I enter ComboBoxA, my delegate is invoked, but when I query the ComboBox making the call

NSSavePanel?

2014-03-06 Thread livinginlosangeles
What’s Adobe’s beef with NSSavePanel? I found this while running fs_usage on my computer. Adobe Easter Egg? 11:14:46 getattrlist /Volumes/DriveA/030514 0.14 Adobe Photos 11:14:46 getattrlist es/DriveA/030514/TestSave0.10 Adobe Photos 11:14:46 lstat64

Minimizing NSTableView redraws

2013-10-31 Thread livinginlosangeles
I have an NSTableView with as many as 40 rows and 12 columns. Each row in my tableview represents one of my model objects. I use a detail view to edit objects that are displayed in the tableview. I have an NSTextView that is set to continuously update when a user modifies the NSAttributed string

ARC vs Manual Reference Counting

2013-09-08 Thread livinginlosangeles
Would anyone agree me that ARC introduces more rules and considerations than previously existed with manual reference counting? On Sep 8, 2013, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > Send Cocoa-dev mailing list submissions to > cocoa-dev@lists.apple.com > > To subscribe

CALayer autoresizing difficulties

2013-07-30 Thread livinginlosangeles
I am adding a special CALayer to the layer of my NSView. I can create my special CALayer, configure it, and add it the center of my NSView layer's heir-achy perfectly fine. However, as soon as I resize my main view, the special CALayer's bounds change. I specified the following autoresizing mask

Can I determine who is calling a delegate

2013-04-26 Thread livinginlosangeles
I have an object that is an NSComboBox delegate. For some reason, when I perform an editing operation in an unrelated tableView (inserting a new object and editing it in the field editor), any new text insertion I perform in one of 3 NSComboBoxes ends up calling my delegate object twice. Is ther

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 necessarily wish for the the va

Warning users when editing multiple items

2013-02-05 Thread livinginlosangeles
I am revisiting an issue with which I had a problem earlier. I have a detail view which is bound to my model in an NSArrayController. Currently, I can edit multiple selections. What I want to accomplish is warn my users when they are about to edit multiple items and give them the choice

Re: NSScrollView Problems

2013-02-03 Thread livinginlosangeles
Ok, I just checked my code and I found exactly that. I had a conditional statement that wasn't balanced with a [NSGraphicsContext restoreGraphicsState]. I should of immediately thought of that as too many things were not operating correctly. The biggest problem was that I didn't see these error

Weird Scrollbar behavior

2013-01-29 Thread livinginlosangeles
Has anyone every seen this kind of weird scroll bar behavior? I embedded a custom view in an NSScrollView. The scroll bars do not appear to be drawing correctly, and they also appear in the middle of my custom view. This happens on 10.6, yet not when I build on 10.7. I also see it on 10.8. I ha

Editing multiple selections with bindings

2013-01-01 Thread livinginlosangeles
I have an application where a user can select multiple rows of data from an NSArrayController and edit those rows from a detail view. Now, there are cases where users have inadvertently changed the values for multiple rows of data when they did not intend to. How can I warn a user when they ente

Proper place to post on 10.8 SDK?

2012-06-11 Thread livinginlosangeles
Where could I post questions regarding the 10.8 SDK? Is that on the apple developer website? Patrick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

NSText showGuessPanel: problem

2011-12-31 Thread livinginlosangeles
If I invoke a menu for an NSTextView, I can successfully spell check the text in my NSTextView by choosing Spelling and Grammar->Show Spelling and Grammar. This menu item calls showGuessPanel: . The guessPanel is opened and it appears that the Guess Panel is synchronized with the misspelled word

Launching 10.5 app on 10.4

2011-10-18 Thread livinginlosangeles
What is the canonical method of alerting a user that an application is built for a newer version of OSX? Patrick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

NSScrollView Anomaly

2011-10-17 Thread livinginlosangeles
I have an NSwindow that contains an NSScrollView encapsulating a NSView. I experience weird behavior where the scrollbars appear white and only draw themselves when I resize the window. I have a picture of it here: http://flic.kr/p/awJRcG Any ideas of why this might be happening? It is really a

NSComboBoxCell & AutoComplete

2011-10-09 Thread livinginlosangeles
I have an NSComboBox bound to the selection of an NSArrayController. The bound object is an NSDictionary. I use an NSValueTransfomer to represent the NSDictionary. The ValueTransformer gives me the dictionary's summary property which is useful for people choosing the appropriate NSDictionary fr

NSUndoManager - unstable state

2011-06-29 Thread livinginlosangeles
Is there a way to check if the NSUndomanager is in an unstable state and reset it? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at

Bindings Question

2010-09-24 Thread livinginlosangeles
I have variable in my NSDocument subclass that is bound to the following path _myNSArrayController.selection.subNSArrayController.selection.variableOfInterest. When I change the subNSArrayController's selection, I don't always see my variable's setters getting called in my NSDocument subclass. W

NSPathStore2 HELP!!!!!!

2010-02-19 Thread livinginlosangeles
> > Subject: Re: NSPathStore2 HELP!! > > Ok, here is how I solved this. Before I called [NSKeyedUnarchive > unarchive...], I called the class method: > > [NSKeyedUnarchiver setClass:[NSString class] forClassName:@"NSPathStore2"]; > > This fixed the errors and allowed me to reclaim the data

updating NSView on separate thread

2010-01-31 Thread livinginlosangeles
I have overlaid a transparent window over my NSDocument's main window. My intent is to draw textual notifications to it, such as "Processing...", "20 things selected...". The idea is partially experimental, etc. I thought it would be neat to display a spinning icon in the a subclassed content vi

Re: NSSliderCell question

2009-07-23 Thread livinginlosangeles
I'll follow up on that tomorrow. Thanks, Patrick Hi, I am using the following two methods for a scrolling number box which is essentially a slider in the form of a NSTextField subclass. I have yet to implement this for my custom sliders but maybe this is a good starting point for you? When I

NSSliderCell question

2009-07-23 Thread livinginlosangeles
I am employing an NSSliderCell in my table view, and I want to slow down the rate of change or increase the resolution of change using a modifier key like commands as I drag. This is employed in a few audio programs to assist a mixer in fine tuning either volume or pan when mixing. Where do

Question re: [NSWindow setFrame:display:]

2009-04-05 Thread livinginlosangeles
In my NSDocument subclass, I am trying to set the main window's frame in the windowControllerDidLoadNib: method. For some reason, I can set the width and height of the window's frame, but not its origin. Any ideas? I am using the setFrame:NSMakeRect(x, y, w, h) display:YES [

Archiving objects on seperate thread

2009-02-19 Thread livinginlosangeles
I have an NSDocument that has several NSArrayControllers worth of data as well as a bunch of iVars. I can succesfully archive my Document's iVars and my ArrayContollers' contents, and I can succesfully implement NSDocument's autosave feature. However, and this is a design limitation on my p

Re: Repost Programmaric NSTextField not editable

2009-01-06 Thread livinginlosangeles
Unfortunately that didn't work. I moved the scrollview to its own window/windowcontroller, and the textfields that sit within the scrollview do allow me to edit them. What happens if you (explicitly?) pass binding option NSConditionallySetsEditableBindingOption with value NO? HTH, Keary Su

Repost Programmaric NSTextField not editable

2009-01-06 Thread livinginlosangeles
I want to display a programmatic list of NSTextfields in a view that is enclosed in a scrollview. I have a tabview whose view contains a scrollview which contains my custom view that I wish to display NSTextFields on. I can create the text fields and bind them to my model, however, I can't