NSTableView delete row with key?

2010-04-21 Thread Chris Idou
What would be the appropriate way to have an NSTableView notice that you hit the delete key and delete the current row? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: NSTableView delete row with key?

2010-04-21 Thread Ron Fleckner
On 21/04/2010, at 5:15 PM, Chris Idou wrote: What would be the appropriate way to have an NSTableView notice that you hit the delete key and delete the current row? Rough guess: override delete, remove the item in your storage class that the row represents, reload the tableview.

Increase area for autoscrolling in NSScrollview

2010-04-21 Thread Nikhil Khandelwal
Hi, In my application I have a NSScrollView which has NSView s in it. When I drag n drop the views inside the scrollview autoscrolling in scroll view doesn't start from half of scroll point. It starts below from expected. Scrolling should start from the black line while in my application it

need help getting Apple sample code to compile

2010-04-21 Thread WT
Hello all, I'm trying to compile the XML Performance sample code for the iPhone, but I have so far been unsuccessful. I followed the instructions on the readme file, namely, to set the HEADER_SEARCH_PATHS build setting to $SDKROOT/usr/include/libxml2. I also tried both recursive and

appscript project gives warning with XCODE 3.2.2

2010-04-21 Thread John Love
Everything worked just dandy for SourceForge's appscript with XCODE 3.2.1. But, with updating to 3.2.2, it is giving me some grief: For one project, it's giving a warning: ld: warning: directory '/Users/johnlove/Documents/XCode/Calculate Medical/../../../appscript/Appscript Framework

Re: appscript project gives warning with XCODE 3.2.2

2010-04-21 Thread Karl Moskowski
On 2010-04-21, at 8:17 AM, John Love wrote: Everything worked just dandy for SourceForge's appscript with XCODE 3.2.1. But, with updating to 3.2.2, it is giving me some grief: For one project, it's giving a warning: ld: warning: directory '/Users/johnlove/Documents/XCode/Calculate

Determining preferred localizations

2010-04-21 Thread Gregory Weston
I'm trying to display a localized list of attached displays, and getting unexpected results in Carbon and Cocoa when attempting to determine the best localization. I did all the obvious-to-me Google searches without finding much except a couple of other people over the years having similar

NaN Problem Adding Numbers from NSTableView

2010-04-21 Thread Philip Juel Borges
Hi, I've googled this issue to no avail until now. In my application I have a tableview with 6 columns to enter numbers for statistic purposes. That works fine. Yet, I've run into a problem adding the numbers together. Under each column below the tableview I have placed an NSLabel to

Re: Custom progress bar for QTMovie??

2010-04-21 Thread douglas welton
Chase, The method I use for doing this relies on QuickTime, not QTKit. Even so, I think it is most effective. I implement a movieController action callback filter. This method is demonstrated in the Adding New Capabilities to the QTKitPlayer Application section of this document:

playing QuickTime movies on iPhone/iPad?

2010-04-21 Thread Steve Christensen
I have a need to be able to play a QuickTime movie containing subtitle tracks, and to be able to turn specific tracks on or off. In looking through the iPhone/iPad docs, it looks like the movie player classes are pretty much restricted to simple playback functions. Have I missed something?

Re: Determining preferred localizations

2010-04-21 Thread Gary L. Wade
The list you are getting is a set of preferred localizations, so when trying to get a resource from the first one, if not available, will go on to the next one and so forth. You should utilize the localization-aware methods to handle getting resources rather than trying to manage this yourself.

Re: need help getting Apple sample code to compile

2010-04-21 Thread David Duncan
On Apr 21, 2010, at 3:51 AM, WT wrote: I'm trying to compile the XML Performance sample code for the iPhone, but I have so far been unsuccessful. I just downloaded and built the sample without issue, the ReadMe describes what you might need to do to include libXML in your own project, not

Re: using coregraphics with vector art from illustrator

2010-04-21 Thread Ross Carter
Is there perhaps a way to create vector art paths in illustrator, and import the data into xcode and use those paths in CG and stroke/fill them there? It might be worth looking at Opacity from likethought.com. It exports directly into source code.

Re: Why is compiler warning for +setKeys:triggerChangeNotificationsForDependentKey: ??

2010-04-21 Thread Greg Parker
On Apr 20, 2010, at 7:16 PM, Roland King wrote: Either way I still don't see why you'd get a method potentially not found warning, I'd expect a deprecation warning. There was a compiler bug wherein deprecation warnings on class methods did not work. It should be fixed in a future developer

Re: CoreData: updating property of fetched object and refetching

2010-04-21 Thread olivier destrebecq
Thanks, that solved it. Olivier http://www.flickr.com/photos/otusweb/ On Tue, Apr 20, 2010 at 4:16 PM, Keary Suska cocoa-...@esoteritech.comwrote: On Apr 20, 2010, at 11:22 AM, olivier destrebecq wrote: Just to clarify, when i say save, i mean call save: on the context and write it to

Re: [ANN]: RegexKitLite 4.0

2010-04-21 Thread Matt Neuburg
On Tue, 20 Apr 2010 15:45:13 -0400, John Engelhart john.engelh...@gmail.com said: There are an awful lot of Top 10 applications that use RegexKitLite that don't acknowledge their use An awful lot? Ex hypothesi and by definition, there must be 10 such applications or fewer...! m. -- matt

Re: [ANN]: RegexKitLite 4.0

2010-04-21 Thread Chris Backas
On Apr 21, 2010, at 4:33 PM, Matt Neuburg wrote: There are an awful lot of Top 10 applications that use RegexKitLite that don't acknowledge their use An awful lot? Ex hypothesi and by definition, there must be 10 such applications or fewer...! m. Except that there can be many Top Ten lists

Re: Determining preferred localizations

2010-04-21 Thread Gregory Weston
Gary L. Wade wrote: The list you are getting is a set of preferred localizations, so when trying to get a resource from the first one, if not available, will go on to the next one and so forth. You should utilize the localization-aware methods to handle getting resources rather than trying to

Re: [ANN]: RegexKitLite 4.0

2010-04-21 Thread John Engelhart
On Wed, Apr 21, 2010 at 4:33 PM, Matt Neuburg m...@tidbits.com wrote: On Tue, 20 Apr 2010 15:45:13 -0400, John Engelhart john.engelh...@gmail.com said: There are an awful lot of Top 10 applications that use RegexKitLite that don't acknowledge their use An awful lot? Ex hypothesi and by

Re: Determining preferred localizations

2010-04-21 Thread Gary L. Wade
I see what you're getting. The issue is that the keys you're getting back by utilizing kDisplayProductName from IOKit only have paired language/territory (e.g., en_US) while the AppleLanguages array in your setups have non-paired ones for most languages (e.g., en). If you were to turn on paired

Re: Custom progress bar for QTMovie??

2010-04-21 Thread Chase Meadors
I thought as much. In fact, I might just add a myCurrentTime property to my subclass that is implemented with this mechanism. Just checking to make sure there wasn't anything I missed. Thanks! On Apr 20, 2010, at 11:56 PM, Kyle Sluder wrote: On Tue, Apr 20, 2010 at 8:09 PM, Chase Meadors

one button mouse right click

2010-04-21 Thread koko
when I ctrl-click should rightMouseDown be called or do I have to look at the modifier flags in mouseDown ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Crash on NSKVOPendingNotificationRelease (KVO, bindings issue?)

2010-04-21 Thread Glen Low
I'm using KVO as a generalized recalculation engine, somewhat akin to how a spreadsheet recalcuates values based on what's changed. It's mostly successful once you eliminate cycles, but there is a persistent problem. On each relevant object, I have a

Re: one button mouse right click

2010-04-21 Thread Nick Zitzmann
On Apr 21, 2010, at 6:31 PM, k...@highrolls.net wrote: when I ctrl-click should rightMouseDown be called or do I have to look at the modifier flags in mouseDown ? No and yes. What exactly are you trying to accomplish? Nick Zitzmann http://www.chronosnet.com/

Re: one button mouse right click

2010-04-21 Thread koko
trying to get a right - click to show a popup menu i had thought that the os would / should convert a ctrl-click to call rightMouseDown but I see it does not and I have to look at flags and call rightMouseDown if ctlr key is down On Apr 21, 2010, at 6:53 PM, Nick Zitzmann wrote: On

Re: one button mouse right click

2010-04-21 Thread Nick Zitzmann
On Apr 21, 2010, at 6:59 PM, k...@highrolls.net wrote: trying to get a right - click to show a popup menu i had thought that the os would / should convert a ctrl-click to call rightMouseDown but I see it does not and I have to look at flags and call rightMouseDown if ctlr key is down

Re: NaN Problem Adding Numbers from NSTableView

2010-04-21 Thread Graham Cox
On 22/04/2010, at 12:53 AM, Philip Juel Borges wrote: But some times I need to leave a tableview cell blank and then it writes NaN in the label. If I type in 0 (zero) it adds up the numbers nicely. But I'd rather just leave the selection empty rather than typing in a zero. Any ideas how

Re: Crash on NSKVOPendingNotificationRelease (KVO, bindings issue?)

2010-04-21 Thread Quincey Morris
On Apr 21, 2010, at 17:47, Glen Low wrote: I'm using KVO as a generalized recalculation engine, somewhat akin to how a spreadsheet recalcuates values based on what's changed. It's mostly successful once you eliminate cycles, but there is a persistent problem. The likely answer (see below

Re: Automator Actions and CFBundleExecutable key

2010-04-21 Thread Mark Munz
I've run into this as well -- particularly with Automator Actions. I decided to finally track down the issue. The root cause appears to be that the RunScript Phase is being called too early in the build process. So when amlint checks for an executable, it hasn't been built yet. If you look at

[NSWindow title] isn't the title

2010-04-21 Thread Quincey Morris
This is more of a curiosity than anything else, but ... I have a (non-document) window whose title is set with 'setTitleWithRepresentedFilename:'. The title actually shown in the title bar is the last path component of the file path, as expected. I have an associated window whose title I'd