Method Sequence on Application Loads

2009-03-08 Thread Kenneth Ramey
I am looking for information on the sequence of method invocation as an application loads. For instance, Apple's documentation says that awakeFrom Nib is called after the user interface loads but before any events have been handled. I want to create an application that begins reading real

Re: How to intercept NSToolbar item selection changes

2009-03-08 Thread Michael Ash
On Sun, Mar 8, 2009 at 6:03 PM, Stuart Malin wrote: > I'm building a Preferences window that has a toolbar, in the style of Mail. > I need to know if the user clicks on a toolbar item to change the pane. If > the current pane has pending changes, I display a sheet asking for action > regarding the

Re: Why don't only these images don't show on the device?

2009-03-08 Thread James Cicenia
OK - It seems as though my builds aren't bringing over all my images. How can I force the build to include all these images? Thanks James On Mar 8, 2009, at 6:55 PM, James Cicenia wrote: Hello - All my images show except for these: UIImageView *imageView = [[UIImageView alloc]initWithFr

re: Performance degrades dramatically in [NSManagedObjectContext executeFetchRequest:error:]

2009-03-08 Thread Ben Trumbull
Oleksiy, NSManagedObjectContext tries to keep the fetch results in sync with the pending unsaved changes you've made. So the more inserted, updated, and deleted objects you have that might match the entity you're fetching against, the longer it can take to filter unsaved changes. You c

Why don't only these images don't show on the device?

2009-03-08 Thread James Cicenia
Hello - All my images show except for these: UIImageView *imageView = [[UIImageView alloc]initWithFrame: CGRectMake(30+(horizontalCount*92),15+currentYOffset,30,30)]; [imageView setImage: [UIImage imageNamed:[pName stringByAppendingString:@".i.png"]]]; [imageView setTag:100]; [scrollView ad

Re: NSObjectController selection - now you see it, now you don't

2009-03-08 Thread Luke Evans
Hi Keary, Thanks. I can confirm that this isn't having any effect in this case. For now, a simple subclass of NSObjectController that recovers the documented behaviour seems to be working satisfactorily for me. There remains every chance that the documented behaviour I quoted isn't the wh

Accessing other UI while keyboard is open

2009-03-08 Thread Miles
How do I still allow the UI to be accessed when the keyboard is open? I have a textfield and and switch and I want to be able to touch either of them while the keyboard is still open but it's currently being blocked. Thanks! ___ Cocoa-dev mailing list (

How to intercept NSToolbar item selection changes

2009-03-08 Thread Stuart Malin
I'm building a Preferences window that has a toolbar, in the style of Mail. I need to know if the user clicks on a toolbar item to change the pane. If the current pane has pending changes, I display a sheet asking for action regarding the present changes. I need to do this BEFORE the select

Re: [SOLVED] Trying to understand the cause of a "message sent to deallocated instance" error

2009-03-08 Thread Matt Crocker
Folks, Thanks to everyone who replied. I always like to find a handy tool that I didn't know about before. I missed the arrival of Instruments with Leopard, but I'll be using in future... It turns out that my problem was me being a bit slack with the starting and stopping of a QTCaptureSe

Re: NSObjectController selection - now you see it, now you don't

2009-03-08 Thread Keary Suska
On Mar 8, 2009, at 2:20 PM, Luke Evans wrote: IIRC, NSObjectController, as a super class has some behavior that doesn't make sense to an NSObjectControlelr proper. Because of this it is possible that the selection change has been deferred to the run loop. You can manually run the run loop

CoreImage: bend frame with shadow

2009-03-08 Thread Houdah - ML Pierre Bernard
Hi! I remember someone posting code to their blog / web site showing how to frame a slightly bend image and add a shadow to it: Much like a sticker peeling off. I can't find the link anymore. Best, Pierre Bernard - - - Houdah Software s. à r. l. http://www.houdah.com HoudahGeo: One-stop

Re: NSObjectController selection - now you see it, now you don't

2009-03-08 Thread Luke Evans
On 8-Mar-09, at 8:38 AM, Keary Suska wrote: IIRC, NSObjectController, as a super class has some behavior that doesn't make sense to an NSObjectControlelr proper. Because of this it is possible that the selection change has been deferred to the run loop. You can manually run the run loop to

CoreData and NSObjectController

2009-03-08 Thread Michael Süssner
I have started to experiment with the core data framework and have run immediately into a problem. I have modelled a data entity "Person" and setup a window in IB which displays all parameters of a single data record. Then I have added a button which calls the add: method of the PersonContr

Re: NSObjectController selection - now you see it, now you don't

2009-03-08 Thread Matt Neuburg
On Sat, 7 Mar 2009 22:05:24 -0800, Luke Evans said: >I'm a little bamboozled by a discovery I've just presently made. > >I was intending using an NSObjectController in one of my classes to >keep a track of which visible object is selected. There are reasons >why I've chosen to have an object cont

Re: Making a border-less window is not working

2009-03-08 Thread Gustavo Pizano
AHa ok thanks that fix it, unfortunately it doesn't looks good. :(:( Gus On 8.3.2009, at 18:13, Benjamin Dobson wrote: On 8 Mar 2009, at 15:40:18, Gustavo Pizano wrote: Hello, I have created a custom NSWindow class, there I implemented the method - (id)initWithContentRect:(NSRect)content

Re: CoreData and NSObjectController

2009-03-08 Thread Quincey Morris
On Mar 8, 2009, at 10:14, Michael Süssner wrote: I have started to experiment with the core data framework and have run immediately into a problem. I have modelled a data entity "Person" and setup a window in IB which displays all parameters of a single data record. Then I have added a bu

CoreData and NSObjectController

2009-03-08 Thread Michael Süssner
I have started to experiment with the core data framework and have run immediately into a problem. I have modelled a data entity "Person" and setup a window in IB which displays all parameters of a single data record. Then I have added a button which calls the add: method of the PersonContr

Re: Making a border-less window is not working

2009-03-08 Thread Benjamin Dobson
On 8 Mar 2009, at 15:40:18, Gustavo Pizano wrote: Hello, I have created a custom NSWindow class, there I implemented the method - (id)initWithContentRect:(NSRect)contentRect styleMask: (NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation screen:(NSScre

Making a border-less window is not working

2009-03-08 Thread Gustavo Pizano
Hello, I have created a custom NSWindow class, there I implemented the method - (id)initWithContentRect:(NSRect)contentRect styleMask: (NSUInteger)windowStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)deferCreation screen:(NSScreen *)screen { I set up the alpha value and the othe

Re: NSObjectController selection - now you see it, now you don't

2009-03-08 Thread Keary Suska
On Mar 7, 2009, at 11:05 PM, Luke Evans wrote: Well, what actually happens is that -selectedObjects almost always returns an empty array. Sending -setContent: does not appear to result in this content being available as the selectedObject in the way described (or there's other magic to ge

Re: NSDrawNinePartImage draws slowly in CALayer

2009-03-08 Thread Sebastian Morsch
Thank you Jean-Daniel for your thoughts on this! Shark revealed that the most time was spend inside NSDrawNinePartImage, so I replaced that function by a self-made lightweight version. Here I discovered that most time was spend on drawing the center image, which is scaled along both the X

Re: Cleaner daemon managed by Launchd?

2009-03-08 Thread Olivier Palliere
On Mar 8, 2009, at 5:38 AM, Michael Ash wrote: On Sat, Mar 7, 2009 at 8:30 PM, Ken Thomases wrote: On Mar 7, 2009, at 5:26 PM, Olivier Palliere wrote: I am working on an application that once started, sets up some temporary files and so. I didn't think of it at first, but I had the case

How to create a color catalog

2009-03-08 Thread Matthias Arndt
I'm still struggling with the problem to identify a color list / name after picking a color with NSColorPanel. It would be easy to solve if I could use color catalogs instead of color lists. In [1] the following is mentioned about NSColorList: The color lists returned by the availableColorL

Re: problem observing selectionIndex of an array controller

2009-03-08 Thread Stuart Malin
On Mar 7, 2009, at 10:10 PM, Ken Thomases wrote: On Mar 8, 2009, at 1:52 AM, Stuart Malin wrote: I'm trying to watch for changes in the selection of a tableView managed by an NSArrayController. I set up an observer: [mArrayController addObserver:self forKeyPath:@"se

Re: problem observing selectionIndex of an array controller

2009-03-08 Thread Ken Thomases
On Mar 8, 2009, at 1:52 AM, Stuart Malin wrote: I'm trying to watch for changes in the selection of a tableView managed by an NSArrayController. I set up an observer: [mArrayController addObserver:self forKeyPath:@"selectionIndex" options:NSKeyValueObse