Issues regarding NSTextStorage

2011-05-03 Thread Vadim Lozko
I've originally posted this on the dev forums but after a few days it's only gotten 8 views and no replies. I'm hoping for a bit more luck here. Here's the original post: We use a subclass of NSTextStorage that enables us to do live word and page count. The final product, however, must be written

How to keep the last tree item of NSOutlineView in the most bottom of a Sidebar?

2009-08-25 Thread Vadim Shpakovski
Hi, I'd like to have the same behavior of special items as it's done in the Things application. I mean Logbook and Trash items on the picture placed under this link: http://tinyurl.com/lhctza Please advise any way to implement the same functionality in the sidebar tree. I feel that

Re: How to detect a click on app's dock icon (when the app is active)?

2009-06-08 Thread Vadim
Another delegate method also works: - (BOOL)applicationShouldHandleReopen:(NSApplication *)theApplication hasVisibleWindows:(BOOL)flag Could you please tell me if it's OK to use it to ‘unhide’ main window. Thanks! On 08.06.2009, at 4:05, Andy Lee wrote: On Jun 7, 2009, at 8:50 PM, Stuart

Re: Backtabbing into an NSTableView

2009-06-07 Thread Vadim
An update on this question. It turns out the first bit of code does not work after all, because 48 is the keyCode for [Tab] and [Shift +Tab]. I needed to change the code to the following: -(void)keyDown:(NSEvent *)theEvent { if ([theEvent keyCode] == 48 ([theEvent modifierFlags]

Re: Core Data merging

2008-08-15 Thread Vadim Lozko
On Aug 15, 2008, at 6:09 AM, Tim Isted wrote: On 15 Aug 2008, at 00:19, Vadim Lozko wrote: I'm having a problem trying to upgrade an existing store of a Core Data database to a newer model that simply has 1 additional attribute property in an entity. This is not a document based app

Core Data merging

2008-08-14 Thread Vadim Lozko
create an NSPersistentStoreCoordinator with a nil model' I'm about 85% sure I specified the path right, but not sure if that'll actually fix my problem. Any guidance or suggestions would be appreciated. Thanks, Vadim Lozko ___ Cocoa-dev mailing