Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus

2009-02-27 Thread Kyle Sluder
Well "focus" does have a meaning (see -[NSView lockFocus]), but I figured you didn't mean that here. It sounds like you want to subclass NSOutlineView and override -resignFirstResponder. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-02-27 Thread Florian Soenens
Hi list, i'm trying to use this function in one of our tools and we noticed that it maxes out at 5000 pixels. We are feeding it a 400 dpi jpg of 9355 by 13243 (A1) with the following props: NSDictionary* thumbOpts = [NSDictionary dictionaryWithObjectsAndKeys: (id)kCF

Possible blunder with CALayers

2009-02-27 Thread rajesh
Hi All, I recently posted a message with subject "View with Subviews + Drawing on top of everything" and I got convinced to use CALayers in my view instead of NSView's. summary: I added few CALayers to myView and tried to resize myView and result was rusty and snaggy. When I used NSView

Re: Possible blunder with CALayers

2009-02-27 Thread rajesh
Sorry forgot to mention: the gray boxes flicker a lot could be Root Layer delayed resizing. On Feb 27, 2009, at 10:25 AM, rajesh wrote: Hi All, I recently posted a message with subject "View with Subviews + Drawing on top of everything" and I got convinced to use CALayers in my view inste

Re: Possible blunder with CALayers

2009-02-27 Thread Patrick Mau
Hallo rajesh I'm no expert and just took a brief look at your code. You are being notified on your NSView frame change and add all your layers to your NSView again in 'layout'. This happens on each resize. This looks very suspicious, because you should only add your layers once and later cha

Re: Possible blunder with CALayers

2009-02-27 Thread rajesh
Hi Patrick, I did change the code and tried some possible ways resizing seems no longer to be a problem (indeed you are an expert) but... When ever I add a Layer my "first" layer flickers and one more thing , how do I set the Flip flag , I am overriding the "isFlipped" in myView , still dra

Re: Cocoa Document-based Application Template

2009-02-27 Thread Richard Somers
You are exactly right. I have been working in core data for so long I thought this should work like magic also. Thanks for the refresher. Richard On Feb 26, 2009, at 10:36PM, Karolis Ramanauskas wrote: You have to set up how you will save your files first, this is not core data. ... On Th

CATiledLayer synchronization problem

2009-02-27 Thread Raphael Sebbe
Hi the list, Using CATiledLayer lately, which works great except for one thing. :::Main Thread::: [tiledLayer setNeedsDisplay] [model change] [tiledLayer setNeedsDisplay]; // not all tiles have been drawn at this point :::Tiled Layer Thread::: [delegate drawLayer...] Invoking second setNee

Re: renaming a file with special/reserved characters in name

2009-02-27 Thread Michael Ash
On Fri, Feb 27, 2009 at 12:05 AM, Martin Wierschin wrote: > Hi Michael, > >> There *can't* be an API for it. Take the case of NFS. NFS has no >> character set restrictions beyond the basics that apply to all UNIXen. >> But the underlying filesystem that the NFS server is writing things to >> may w

Re: Metrics for a NSTextField

2009-02-27 Thread Eric Gorr
Hi Martin, Martin Wierschin wrote: > > Eric Gorr Wrote: > > > Martin Wierschin wrote: > > Hi Eric, > > > > Sizing the editor may not be the window's responsibility- it may expect > > > the control to do so. What happens if you resize the NSTextView and/or > > > NSTextContainer yourself as ne

Re: Possible blunder with CALayers

2009-02-27 Thread Gordon Apple
The view's layer ignores the flipped flag. I added my own "content" layer with an inversion transform. On 2/27/09 8:01 AM, "cocoa-dev-requ...@lists.apple.com" wrote: > When ever I add a Layer my "first" layer flickers and > one more thing , how do I set the Flip flag , I am overriding the

Re: Why doesn't this work on my device?

2009-02-27 Thread James Cicenia
It is a new morning. Same problem. Here is my code: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *path = [documentsDirectory stringByAppendingPathComponent:@"wha

Re: Compile errors

2009-02-27 Thread Fritz Anderson
On 26 Feb 2009, at 10:19 PM, Barry Fawthrop wrote: To Greg Thank for the input I have asn1_encode.mm and AppController.m I changed this to AppController.mm and all worked fine ??? This is a result of the C++ name mangling Greg mentioned. C++ will take a simple-looking function name and t

Re: NSOutlineView - a way to adjust column widths without a header?

2009-02-27 Thread Corbin Dunn
On Feb 26, 2009, at 5:19 PM, Graham Cox wrote: On 27/02/2009, at 12:13 PM, Corbin Dunn wrote: Short answer: automatically, no. Manually, probably. All the logic is implemented in NSTableHeaderView. You'd have to subclass NSTableView and do the hit testing and work yourself in -mouseDown:

Re: Why doesn't this work on my device?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 7:56 AM, James Cicenia wrote: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *path = [documentsDirectory stringByAppendingPathComponent:@"whatsfr

Re: Why doesn't this work on my device?

2009-02-27 Thread James Cicenia
Thanks for your patience. I did in fact use portions of sqlite books and have the following code: // Creates a writable copy of the bundled default database in the application Documents directory. - (void)createEditableCopyOfDatabaseIfNeeded { // First, test for existence. BOOL succe

Negative zero and NSNumberFormatter

2009-02-27 Thread Sean McBride
Hi all, I am displaying some floating point numbers to the user using NSNumberFormatter. It will sometimes show "0.0" and sometimes "-0.0". For an end user (oblivious to the details of IEEE754), this is silly. How can I make it display "0.0" instead of "-0.0"? (In a localisation friendly way of

Re: Why doesn't this work on my device?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 8:44 AM, James Cicenia wrote: Don't use UTF8String to get a C string for a file system path, you should use -fileSystemRepresentation. I don't even know what that is? It is documented-- google, Xcode's documentation window, or developer.apple.com will quickly fulfill yo

Re: Why doesn't this work on my device?

2009-02-27 Thread James Cicenia
ARrrgh... The database exists but it contains nothing?! I double checked it in my trusty firefox sqlite extension, and everything is there. Is there some magic "touch" I need to do to get the tables properly into the device? I have cleaned my project, restarted xcode, rebuilt, etc. thanks

Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus

2009-02-27 Thread Jerry Krinock
On 2009 Feb 26, at 23:39, Stuart Malin wrote: BOOL isViewInFocus = self controlView] window] firstResponder] isEqual:[self controlView]]; Is there perhaps a better way to determine if a view is "key" ? No, but I believe you should also check that the control view's window -isKeyWindo

Re: Why doesn't this work on my device?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 9:07 AM, James Cicenia wrote: ARrrgh... The database exists but it contains nothing?! I double checked it in my trusty firefox sqlite extension, and everything is there. Is there some magic "touch" I need to do to get the tables properly into the device? I have cleaned my

enabling Edit menu items in a modal window?

2009-02-27 Thread Steve Christensen
I'm working on a plugin that needs to do its configuration in a modal window. As soon as it calls [NSApp runModalForWindow:window], the items in the Edit menu are disabled. Is there some way to selectively enable some of the items? For instance, it'd be nice if I could do a Select All...

Re: Why doesn't this work on my device?

2009-02-27 Thread James Cicenia
YES YES YES Maybe with all my... yes, I admit, start throwing stuff, deleting, recoding, I must have done that. Then I just "assumed" that it would it push a fresh copy over. Wow, that was a frustrating bug. Again,,, thank you, thank you, thank you. I owe you a beer, or whatever. App

Re: OutlineView with custom TableColumn cell doesn't redisplay when losing focus

2009-02-27 Thread Corbin Dunn
On Feb 27, 2009, at 9:18 AM, Jerry Krinock wrote: On 2009 Feb 26, at 23:39, Stuart Malin wrote: BOOL isViewInFocus = self controlView] window] firstResponder] isEqual:[self controlView]]; Is there perhaps a better way to determine if a view is "key" ? No, but I believe you should al

Re: Why doesn't this work on my device?

2009-02-27 Thread Stuart Malin
On Feb 27, 2009, at 8:27 AM, James Cicenia wrote: ARrrgh... The database exists but it contains nothing?! I double checked it in my trusty firefox sqlite extension, and everything is there. Is there some magic "touch" I need to do to get the tables properly into the device? I have cleaned my

Re: gui development without using xcode or interface builder

2009-02-27 Thread I. Savant
On Fri, Feb 27, 2009 at 11:00 AM, Mark Suman wrote: > You can also pound a nail into wood using your fist, but I would recommend a > hammer. Yes, very wise. Thank you for that. I think the analogy works better like this: Why use a plain old hammer when there're pneumatic nail drivers with n

NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Tobias Zimmerman
Can someone confirm that the System Preferences application cannot load a preference pane that is compiled with garbage collection? Even linking to a framework compiled with GC ³supported² causes System Prefs to reject my preference pane (Give an error saying it cannot be loaded). Turn off GC and

NSFileManager reads from invalid memory

2009-02-27 Thread Tim Murison
Hi, I noticed an issue in my code related to NSFileManager. When running my program with gmalloc, I got a seg fault. I traced the cause back to NSFileManager and wrote a simple reproducible program to illustrate the issue. Can one of the gurus here point out a flaw, or is this a real bug? #import

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Nick Zitzmann
On Feb 27, 2009, at 11:52 AM, Tobias Zimmerman wrote: I have googled this and am surprised I haven’t seen references to the issue. Am I doing something wrong (other than not writing dual-mode code), or is there a known incompatibility between GC and the System Preferences? The Preference

Re: Why doesn't this work on my device?

2009-02-27 Thread Clark Cox
On Fri, Feb 27, 2009 at 10:44 AM, Stuart Malin wrote: > > > On Feb 27, 2009, at 8:27 AM, James Cicenia wrote: > >> ARrrgh... >> >> The database exists but it contains nothing?! I double checked it in >> my trusty firefox sqlite extension, and everything is there. >> Is there some magic "touch" I

Re: gui development without using xcode or interface builder

2009-02-27 Thread Paul Sanders
Has anyone asked the original poster (that's you, baba) *why* he wants to do this? Speaking as a 'Windows Switcher', I was tempted to ignore Interface Builder, for a while. Hell, I even took a look at Carbon :) ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 11:00 AM, Nick Zitzmann wrote: The PreferencePanes framework in Leopard doesn't support GC for some unknown reason. I believe I filed a bug on this when it was in early beta, and nothing changed in the final. The System Preferences application does not support GC, thus fr

Fwd: Core data subentities bug ?

2009-02-27 Thread Pierre Chatelier
Hello, Before reporting that as a bug to Apple, I want to be sure that I did not do anything wrong. I have the following data model : An entity "Wrapper", which is a superentity of "SubWrapper". The "Wrapper" has a bidirectional relationship to another entity "Item". Period. When I check the

Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-02-27 Thread David Duncan
On Feb 27, 2009, at 1:12 AM, Florian Soenens wrote: i'm trying to use this function in one of our tools and we noticed that it maxes out at 5000 pixels. The documentation says that if you do not specify kCGImageSourceThumbnailMaxPixelSize the width and height of a thumbnail is not limited

Re: gui development without using xcode or interface builder

2009-02-27 Thread I. Savant
On Fri, Feb 27, 2009 at 2:07 PM, Paul Sanders wrote: > Has anyone asked the original poster (that's you, baba) *why* he wants to do > this? Yes. Nick did. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Nick Zitzmann
On Feb 27, 2009, at 12:08 PM, Bill Bumgarner wrote: The System Preferences application does not support GC, thus framework support is irrelevant. Actually, it is relevant. We used to use the PreferencePanes framework for things having nothing to do with System Preferences, but had to re

Re: gui development without using xcode or interface builder

2009-02-27 Thread Paul Sanders
> > Has anyone asked the original poster (that's you, baba) *why* he wants > > to do this? > Yes. Nick did. Sorry, must have missed it. Anyway baba, speaking as a noob, it's worth the learning curve, although it feels mighty strange at first. __

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Tobias Zimmerman
Sorry, you have confused me slightly (or perhaps given me false hope). I have 3 targets in my project: (1) the preference pane; (2) a framework; and (3) an application. 1 & 2 are both dual mode insofar as they can be compiled and run without garbage collection. #3, which doesn't interact with th

Re: gui development without using xcode or interface builder

2009-02-27 Thread Nick Zitzmann
On Feb 27, 2009, at 12:07 PM, Paul Sanders wrote: Has anyone asked the original poster (that's you, baba) *why* he wants to do this? I did, and got an answer back off-list. The OP can re-post it if he wishes. FWIW, I can only think of two good reasons not to use IB and some IDE to ma

The fieldEditor and a focus ring

2009-02-27 Thread Eric Gorr
If I check the value of focusRingType for the fieldEditor which is currently handling the text input, I get a value back of NSFocusRingTypeDefault. But, even if I set the value to NSFocusRingTypeExterior, no focus ring is drawn. Is this focus ring something I need to draw myself or is there

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 11:36 AM, Nick Zitzmann wrote: On Feb 27, 2009, at 12:08 PM, Bill Bumgarner wrote: The System Preferences application does not support GC, thus framework support is irrelevant. Actually, it is relevant. We used to use the PreferencePanes framework for things having nothi

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 11:47 AM, Tobias Zimmerman wrote: Sorry, you have confused me slightly (or perhaps given me false hope). I have 3 targets in my project: (1) the preference pane; (2) a framework; and (3) an application. 1 & 2 are both dual mode insofar as they can be compiled and run wi

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Nick Zitzmann
On Feb 27, 2009, at 1:16 PM, Bill Bumgarner wrote: Yes; that is a bug -- any framework that can be embedded in a Cocoa application as supported API should be GC enabled. Please file a bug. I did, almost exactly a month before Leopard shipped. The bug # is 5493316, and it was closed as

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 12:24 PM, Nick Zitzmann wrote: On Feb 27, 2009, at 1:16 PM, Bill Bumgarner wrote: Yes; that is a bug -- any framework that can be embedded in a Cocoa application as supported API should be GC enabled. Please file a bug. I did, almost exactly a month before Leopard shipp

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Sean McBride
On 2/27/09 12:18 PM, Bill Bumgarner said: >A framework can be dual mode; can support both GC and non-GC >operation. This is how all of the frameworks [should be -- seems one >slipped through] are compiled on the system. The CHUD.framework is also not GC-friendly. This is a shame, since it pre

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Bill Bumgarner
On Feb 27, 2009, at 12:28 PM, Sean McBride wrote: On 2/27/09 12:18 PM, Bill Bumgarner said: A framework can be dual mode; can support both GC and non-GC operation. This is how all of the frameworks [should be -- seems one slipped through] are compiled on the system. The CHUD.framework is als

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Tobias Zimmerman
OK, I'm being dense today, but is it the case that the entire bundle is marked as GC-required if any piece of it requires GC? If I move the app out of the bundle (so it is just the Pane and the framework) does that make it no longer GC-required (if the Framework is compiled as "GC-supported")? Ag

Re: NSPrefrencePane with Garbage Collection won't work in System Preferences?

2009-02-27 Thread Greg Parker
On Feb 27, 2009, at 12:58 PM, Tobias Zimmerman wrote: OK, I'm being dense today, but is it the case that the entire bundle is marked as GC-required if any piece of it requires GC? If I move the app out of the bundle (so it is just the Pane and the framework) does that make it no longer GC-r

Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
Here is my code: - (void)monthFruitAction:(id)sender{ MonthPickerViewController *mpvc = [[MonthPickerViewController alloc]initWithNibName:@"MonthPicker" bundle:nil]; [mpvc setMyParentController:self]; mpvc.view.frame =CGRectMake(19,66,260,258); [fruitTypeView addSubvi

Re: Where or when do I release this object from this action.

2009-02-27 Thread I. Savant
On Fri, Feb 27, 2009 at 4:43 PM, James Cicenia wrote: > Here is my code: > > - (void)monthFruitAction:(id)sender{ > >        MonthPickerViewController *mpvc = [[MonthPickerViewController > alloc]initWithNibName:@"MonthPicker"    bundle:nil]; >        [mpvc setMyParentController:self]; >        mp

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
Here is the scenario - If I put [mpvc release] at the end, my popup won't show, which perplexes me. This action pushes a view onto the existing view. It is a small view with a bunch of buttons. So, I am confused on where or when it should be released. thanks - j- On Feb 27, 2009, at 3:

Weird "Ignoring bogus layer size" error using Collection View

2009-02-27 Thread Erwan Ripoll
Hi all, I've been toying around with Collection Views and I get the following error after using a collection view for a while : -[_NSViewBackingLayer(0x157c4c30) p={724.109, 739.727} b=(0,0,2.11719,0.507812) superlayer=0x15737320 display]: Ignoring bogus layer size (2.117188, 0.507812)

Re: Metrics for a NSTextField

2009-02-27 Thread Martin Wierschin
Hi Eric, It may say that, but you're completely bypassing the normal way the field editor works. I think the documentation is written with the expectation that the editor will be configured by the control. Am I? It is unclear that I am indeed completely bypassing the normal way the fiel

Re: renaming a file with special/reserved characters in name

2009-02-27 Thread Martin Wierschin
On 2009.02.26, at 9:20 PM, Ken Thomases wrote: One issue is that on Unix, there's a single file hierarchy. Various file systems, drives, volumes, shares, what-have-you are mounted _into_ this file hierarchy. So, if you have an NFS share mounted, some parts of it may support one file nami

Re: gui development without using xcode or interface builder

2009-02-27 Thread Mark Suman
You can also pound a nail into wood using your fist, but I would recommend a hammer. Xcode and IB are there for a reason, they make Cocoa dev much easier. I echo the others here and say, use them to do Cocoa dev. Mark On Wed, Feb 25, 2009 at 4:32 PM, I. Savant wrote: > On Feb 25, 2009, at 5:15

Re: Where or when do I release this object from this action.

2009-02-27 Thread Shawn Erickson
On Fri, Feb 27, 2009 at 1:57 PM, James Cicenia wrote: > Here is the scenario - > > If I put [mpvc release] at the end, my popup won't show, which perplexes me. At the end of what? Please give us a much more complete picture when you ask a question ... otherwise you are wasting yours and our time

Re: renaming a file with special/reserved characters in name

2009-02-27 Thread Shawn Erickson
On Fri, Feb 27, 2009 at 2:15 PM, Martin Wierschin wrote: > On 2009.02.27, at 5:58 AM, Michael Ash wrote: > >> HFS+ only accepts non-UTF-8 by URL-encoding (!) the non-UTF-8 bytes > > Wow, that's pretty horrific. It also isn't really correct. HFS+ doesn't use UTF-8 it uses and stores Unicode (full

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
OK - The question is where do I release that object. If I put the release at the end of the method, nothing will pop into my view. If I don't release it, it works fine, but then I am worried about a leak. - (void)monthFruitAction:(id)sender{ MonthPickerViewController *mpvc = [[MonthPicker

Re: Weird "Ignoring bogus layer size" error using Collection View

2009-02-27 Thread David Duncan
On Feb 26, 2009, at 4:32 PM, Erwan Ripoll wrote: I've been toying around with Collection Views and I get the following error after using a collection view for a while : -[_NSViewBackingLayer(0x157c4c30) p={724.109, 739.727} b=(0,0,2.11719,0.507812) superlayer=0x15737320 display]: Ignoring

Re: gui development without using xcode or interface builder

2009-02-27 Thread Kevin Walzer
Nick Zitzmann wrote: FWIW, I can only think of two good reasons not to use IB and some IDE to make Mac OS X executables: 1. The developer has some sort of handicap that makes use of IB inconvenient to impossible. 2. The developer is working on yet another cross-platform framework, such as XU

Re: gui development without using xcode or interface builder

2009-02-27 Thread Nick Zitzmann
On Feb 27, 2009, at 3:48 PM, Kevin Walzer wrote: (My project consisted of 200 lines of ObjC code, sans nib file, to implement two Tcl commands to change an app's Dock icon. Is that making simple things complicated?) If you could have done it with a GUI builder, then probably. But changi

NSButtonCell recessed toggling fails in 10.4

2009-02-27 Thread Mark Woods
I'm writing an application that uses the 10.4 Universal SDK for compatibility reasons. Looking in the NSButtonCell documentation, it states that recessed cells are supported in 10.4 and above. However, if I add one and set its mode to Push On Push Off, it doesn't toggle as expected. It just

Re: Where or when do I release this object from this action.

2009-02-27 Thread Sherm Pendley
On Fri, Feb 27, 2009 at 5:42 PM, James Cicenia wrote: > OK - > > The question is where do I release that object. If I put the release at the > end of the method, nothing will pop into my view. > If I don't release it, it works fine, but then I am worried about a leak. > > - (void)monthFruitAction

Re: The fieldEditor and a focus ring

2009-02-27 Thread Graham Cox
On 28/02/2009, at 7:07 AM, Eric Gorr wrote: If I check the value of focusRingType for the fieldEditor which is currently handling the text input, I get a value back of NSFocusRingTypeDefault. But, even if I set the value to NSFocusRingTypeExterior, no focus ring is drawn. Is this focus r

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
Thanks That makes a lot of sense. James On Feb 27, 2009, at 5:25 PM, Sherm Pendley wrote: On Fri, Feb 27, 2009 at 5:42 PM, James Cicenia wrote: OK - The question is where do I release that object. If I put the release at the end of the method, nothing will pop into my view. If I do

Re: Where or when do I release this object from this action.

2009-02-27 Thread Peter N Lewis
At 15:43 -0600 27/2/09, James Cicenia wrote: Here is my code: - (void)monthFruitAction:(id)sender{ MonthPickerViewController *mpvc = [[MonthPickerViewController alloc]initWithNibName:@"MonthPicker" bundle:nil]; [mpvc setMyParentController:self]; mpvc.view.frame =CGRectMake(19

Re: Where or when do I release this object from this action.

2009-02-27 Thread Graham Cox
On 28/02/2009, at 9:42 AM, James Cicenia wrote: The question is where do I release that object. The general answer is, when you no longer need it. So, when is that? If I put the release at the end of the method, nothing will pop into my view. If I don't release it, it works fine, but then

Re: enabling Edit menu items in a modal window?

2009-02-27 Thread Graham Cox
On 28/02/2009, at 4:26 AM, Steve Christensen wrote: I'm working on a plugin that needs to do its configuration in a modal window. As soon as it calls [NSApp runModalForWindow:window], the items in the Edit menu are disabled. Is there some way to selectively enable some of the items? For in

Debugging the dreaded "CoreData could not fulfill a fault...."

2009-02-27 Thread Jerry Krinock
For the last hour or so I've been debugging a "CoreData could not fulfill a fault..." log message. The error tells me ^what^ object is involved, but not ^why^ it thinks it needs to fulfill the fault. I've checked through everything I can think of, and all Delete Rules involving this object

RE: Debugging the dreaded "CoreData could not fulfill a fault...."

2009-02-27 Thread Jesper Storm Bache
If that is the only message you see in the console, then you can try to break on "asl_send". Jesper Storm Bache From: cocoa-dev-bounces+jsbache=adobe@lists.apple.com [cocoa-dev-bounces+jsbache=adobe@lists.apple.com] On Behalf Of Jerry Krinock [je

Re: Debugging the dreaded "CoreData could not fulfill a fault...."

2009-02-27 Thread Jerry Krinock
On 2009 Feb 27, at 16:21, Jesper Storm Bache wrote: If that is the only message you see in the console, then you can try to break on "asl_send". Thanks, Jesper. Seemed like a great idea, but unfortunately it looks like the the root causer is not in the call stack... #0 0x939822ce i

Re: Debugging the dreaded "CoreData could not fulfill a fault...."

2009-02-27 Thread Jerry Krinock
I believe I've found the cause of this. For future reference, the successful troubleshoot was logging at the beginning and end of any methods which might be invoked automatically to update views, such as -reloadData, -menuNeedsUpdate, - validateMenuItem, etc. In my case, it looks like the

NSSplitView splitViewDidResizeSubviews

2009-02-27 Thread Stuart Malin
I have a Split View in my U/I. I want to update some controls *after* the user has repositioned the split view's divider. So, I implemented - (void)splitViewDidResizeSubviews:(NSNotification *)aNotification thinking it would be invoked after the user was done resizing (i.e., after the mouse

Finding the path of selected item in NSOutlineView

2009-02-27 Thread Ankur Singhal
Hi All, I am facing a problem in finding the path of the selected item from NSOutlineView. Can any one help me out in solving this problem? I am trying to use - (void)outlineViewSelectionDidChange:(NSNotification

Re: Finding the path of selected item in NSOutlineView

2009-02-27 Thread Graham Cox
On 28/02/2009, at 3:24 PM, Ankur Singhal wrote: I am facing a problem in finding the path of the selected item from NSOutlineView. Can any one help me out in solving this problem? I am trying to use - (void)outlineViewSelectionDidChange:(NSNotification

RE: Finding the path of selected item in NSOutlineView

2009-02-27 Thread Ankur Singhal
Hi, By path I mean to say the actual path of the object present on my Pc like /users/ankur/desktop Thanks & Regards, Ankur Singhal -Original Message- From: Graham Cox [mailto:graham@bigpond.com] Sent: Saturday, February 28, 2009 10:36 Morning To: Ankur Singhal Cc: cocoa-dev@lists.ap

Re: Finding the path of selected item in NSOutlineView

2009-02-27 Thread Graham Cox
On 28/02/2009, at 4:10 PM, Ankur Singhal wrote: Hi, By path I mean to say the actual path of the object present on my Pc like /users/ankur/desktop But that has nothing to do with NSOutlineView. If the outline view's datasource is supplying it with paths as the view's data, then -itemAt

Re: Name to PSN

2009-02-27 Thread Pierce Freeman
I have been doing some more research on this... And it seems as if the dock is an application. It lives in Hard Drive/System/Library/Core Services/Dock and all of it's bundle info seem to point to it being an application. But this still leaves the problem of how to restart it (or send a quit even

Re: Name to PSN

2009-02-27 Thread Kyle Sluder
On Sat, Feb 28, 2009 at 1:41 AM, Pierce Freeman wrote: > Does anyone have any ideas? To restart the dock, you send a quit event to the Finder. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Name to PSN

2009-02-27 Thread Andrew Farmer
On 27 Feb 09, at 22:49, Kyle Sluder wrote: On Sat, Feb 28, 2009 at 1:41 AM, Pierce Freeman wrote: Does anyone have any ideas? To restart the dock, you send a quit event to the Finder. No, that'll just quit the Finder. The Dock is a separate application which you can tell to quit separatel

Re: Name to PSN

2009-02-27 Thread Kyle Sluder
On Sat, Feb 28, 2009 at 1:53 AM, Andrew Farmer wrote: > No, that'll just quit the Finder. The Dock is a separate application which > you can tell to quit separately. That'll teach me to post from the hip. :P As soon as I hit Send I thought something wasn't right. --Kyle Sluder

Re: Name to PSN

2009-02-27 Thread Ken Thomases
On Feb 28, 2009, at 12:41 AM, Pierce Freeman wrote: Does anyone have any ideas? tell application "System Events" tell application process "Dock" get accepts high level events end tell end tell result -> true Have you tried just: tell app "Dock" to quit ? Ch