Re: Core Data and ordered to-many relations

2009-05-25 Thread Kevin Gessner
mutableOrderedValueForKey: (and some other useful methods) to NSManagedObject, allowing to-many relationships to be stored with a specified order. I've been using it in one of my projects and it works like a charm. -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com

Re: Take over function keys

2009-05-18 Thread Kevin Gessner
. HTH. -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com ___ 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

Text color in NSOutlineView's selected row

2009-05-07 Thread Kevin Gessner
haven't seen any specific methods to control the appearance of the selected row, and I'm out of obvious places to set the text color. Thanks in advance. -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com ___ Cocoa-dev mailing

Re: Text color in NSOutlineView's selected row

2009-05-07 Thread Kevin Gessner
On May 7, 2009, at 3:39 PM, develo...@mugginsoft.com wrote: Try reviewing this thread - it might help http://www.cocoabuilder.com/archive/message/cocoa/2009/3/12/232149 Thanks for the pointer - that's what I get for not Googling for the outline view's super class, too. -- Kevin Kevin

Re: Text color in NSOutlineView's selected row

2009-05-07 Thread Kevin Gessner
On May 7, 2009, at 6:11 PM, Corbin Dunn wrote: On May 7, 2009, at 6:52 AM, Kevin Gessner wrote: On May 7, 2009, at 3:39 PM, develo...@mugginsoft.com wrote: Try reviewing this thread - it might help http://www.cocoabuilder.com/archive/message/cocoa/2009/3/12/232149 Thanks

ESC while editing NSOutlineView subclass

2009-04-23 Thread Kevin Gessner
on the right track. I was also thinking about returning a custom field editor for instances of MyEditorOutlineView, and having the field editor handle ESC itself. This seems like overkill with all the delegate methods available, though. Thanks in advance for any help. -- Kevin Kevin Gessner

Re: [Q] detecting when a NSTextField begins editing

2009-02-14 Thread Kevin Gessner
Maybe you could listen for the window's delegate to receive windowWillReturnFieldEditor:toObject: for the text field? I've no experience with it, but the docs indicate that it should be called at the beginning of an editing session. HTH -- Kevin Kevin Gessner http://kevingessner.com ke

Re: Which keyboard (barcode scanner) did the event come from?

2009-02-10 Thread Kevin Gessner
-specific, then wait for the next NSEvent to bubble up. It's a bit of housekeeping, but it has been working well in practice. HTH -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com ___ Cocoa-dev mailing list (Cocoa-dev

Re: Service request fails if provider has not yet launched

2009-01-14 Thread Kevin Gessner
the right object to -[NSApplication setServicesProvider:]? 3. Do you implement the proper service method? A typo could be preventing the service from being found. HTH -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com ___ Cocoa

Re: CharacterAtIndex method?

2008-12-22 Thread Kevin Gessner
*)string { int i; for (i=0;i[string length];i++) { unichar c = [string characterAtindex:i]; [snip] Watch your capitalization: you've got characterAtindex:, but the selector is characterAtIndex:. HTH, -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Kevin Gessner
. HTH, -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com On Dec 18, 2008, at 10:28 AM, Eric Gorr wrote: I need to be able to use a NSCollectionView inside of a cell for a NSOutlineView. The outline view will have only a single column and look like: Collapsible Row 1

Re: Implementing a record counter (record n of records)

2008-12-18 Thread Kevin Gessner
be NSNoSelectionMarker, so you could check against that in your value transformer. HTH, -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Swap subviews of NSSplitView?

2008-12-16 Thread Kevin Gessner
, -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com ___ 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

Re: constraining autoresizing of a splitview subview

2008-12-13 Thread Kevin Gessner
http://www.omnigroup.com/mailman/archive/macosx-dev/2004-March/051353.html HTH, -- Kevin Kevin Gessner http://kevingessner.com ke...@kevingessner.com On Dec 13, 2008, at 7:39 PM, christophe mckeon gonzalez de leon wrote: hi, i have a splitview containing two vertical subviews. i'd like

Re: Custom NSSlider?

2008-12-01 Thread Kevin Gessner
if the bindings update would be affected by this setting. HTH, -- Kevin Kevin Gessner http://kevingessner.com [EMAIL PROTECTED] On Dec 1, 2008, at 7:34 PM, Jean-Nicolas Jolivet wrote: I was wondering if its possible to have an NSSlider send an action after the user finished dragging, while

Re: Automatic file numbering ideas...

2008-11-23 Thread Kevin Gessner
), but that's true of your iterative solution as well. HTH, -- Kevin Kevin Gessner http://kevingessner.com [EMAIL PROTECTED] On Nov 23, 2008, at 2:00 PM, Jean-Nicolas Jolivet wrote: You're right, hadn't thought of that! Well, I'll implement it like that for now but I'll keep an eye on this thread

Re: Play/Pause, rew/ff keys ...

2008-11-11 Thread Kevin Gessner
give y'all some code if you're needing. HTH, -- Kevin Kevin Gessner http://www.kevingessner.com [EMAIL PROTECTED] On Nov 11, 2008, at 12:10 PM, Ben Lachman wrote: I noodled around with this for SousChef, and it's fairly straight forward to get the events (I can provide code if desired

Re: Play/Pause, rew/ff keys ...

2008-11-11 Thread Kevin Gessner
( kCFAllocatorDefault, eventTap, 0); // Add to the current run loop. CFRunLoopAddSource(CFRunLoopGetCurrent(), runLoopSource, kCFRunLoopCommonModes); // Enable the event tap. CGEventTapEnable(eventTap, true); } HTH, -- Kevin Kevin Gessner http://www.kevingessner.com [EMAIL

Re: About Ink drawing with wacom tablet

2008-11-03 Thread Kevin Gessner
(though maybe not directly into NSBezierPath). HTH, -- Kevin Kevin Gessner http://www.kevingessner.com [EMAIL PROTECTED] On Nov 3, 2008, at 4:54 PM, john chen wrote: Hi all, I am working on to implement a signature feature in a cocoa application. I have an NSImageView, and the goal

Re: Open Window from Input Manager

2008-10-29 Thread Kevin Gessner
Is your spelling right? The method is loadNibNamed:owner:; your email says loadNibName:owner:. AppKit should be included in your average cocoa program. Also note that it's a class method, not an instance method. Not sure what else would be causing it. -- Kevin Kevin Gessner http

Re: Getting Styluses/Track Pad Input in Cocoa

2008-10-26 Thread Kevin Gessner
://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/Introduction/chapter_1_section_1.html HTH -- Kevin Kevin Gessner http://www.kevingessner.com [EMAIL PROTECTED] On Oct 26, 2008, at 6:44 PM, Pierce Freeman wrote: Hi everyone. I am currently looking into if there is some way to get input

Re: WebView: Open new windows in default browser

2008-10-23 Thread Kevin Gessner
this, but it might be a more elegant solution. Thanks, -- Kevin Kevin Gessner http://www.kevingessner.com [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Device Information from NSEvent?

2008-10-20 Thread Kevin Gessner
but none of them seem to be device-unique. Any help? Thanks, -- Kevin Kevin Gessner http://www.kevingessner.com [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments