Re: When does Cocoa get "No more!" from malloc?

2008-10-25 Thread Ken Thomases
On Oct 25, 2008, at 11:48 PM, Jerry Krinock wrote: Why did malloc say "No more!" on his Mac, but not on mine? Because you didn't let yours run amok for long enough. If your app is leaking memory on a (more or less) continuous basis, it will eventually get an error like your user got. You j

When does Cocoa get "No more!" from malloc?

2008-10-25 Thread Jerry Krinock
One of my users recently found conditions under the memory allocated by my app would become huge. I fixed the problem, but I'm wondering why it behaved differently for he and I. On his MacBook Pro with Intel Core 2 Duo, 2 GB RAM, and 250 GB hard drive with 160 GB free, it would crash after

Re: Creating Toolbar Items in IB

2008-10-25 Thread Graham Cox
Thanks guys - it's making more sense now. The point I'd missed was that the items in the drop-down sheet were selectable and editable. Bit of a weird an unexpected interface maybe. cheers, Graham On 23 Oct 2008, at 12:33 pm, Quincey Morris wrote: On Oct 22, 2008, at 17:39, Graham Cox wro

Re: NSPersistentDocument: "Settings" (DepartmentsAndEmployees)

2008-10-25 Thread Jerry Krinock
I started wondering: Since 'department' is in fact a managed object and can be fetched, why does MyDocument need it as an instance variable? Answer: It doesn't! I eliminated the declaration NSManagedObject *department ; and also I eliminated the -setDepartment: setter and all invoca

Re: NSPersistentDocument: "Settings" (DepartmentsAndEmployees)

2008-10-25 Thread Jerry Krinock
On 2008 Oct, 25, at 13:01, Quincey Morris wrote: Well, it's not clear what class your -document getter belongs to, or why you're expecting it to be referenced by code you didn't write. Core Data knows nothing about documents. NSPersistentDocument "merely" wraps document behavior around Cor

Re: Sizing strangeness in the land of NSDrawer

2008-10-25 Thread Steven Riggs
Typo, I meant turn off garbage collection and see if it starts working. oops -Steve On Oct 25, 2008, at 9:06 PM, Luke Evans wrote: Hello list denizens. I've just created some UI with an NSDrawer attached to a regular window. I've done this before a while back and everything wo

Re: Sizing strangeness in the land of NSDrawer

2008-10-25 Thread Steven Riggs
Turn on garbage collection and see if it starts working. -Steve On Oct 25, 2008, at 9:06 PM, Luke Evans wrote: Hello list denizens. I've just created some UI with an NSDrawer attached to a regular window. I've done this before a while back and everything worked fine. I thought everythin

Sizing strangeness in the land of NSDrawer

2008-10-25 Thread Luke Evans
Hello list denizens. I've just created some UI with an NSDrawer attached to a regular window. I've done this before a while back and everything worked fine. I thought everything was fine this time too: the drawer opens on command, has the correct initial size, and behaves mostly normally

Re: How to exit a thread help...

2008-10-25 Thread Ken Thomases
On Oct 25, 2008, at 1:00 PM, Tom Jones wrote: I'm writing a Foundation tool and I need to run a NSTask in a separate thread. An NSTask is a different thing from a thread. Since NSTask provides asynchronous notification of its death (and NSFileHandle provides asynchronous methods for deal

Re: what do you use to make icons and similar?

2008-10-25 Thread Andrew Merenbach
On Oct 19, 2008, at 2:32 AM, Andy Lee wrote: On Oct 19, 2008, at 5:20 AM, Roland King wrote: I need a make a few icons and other graphics for my app, simple stuff like a small yellow triangle with an invisible background. I'm totally and completely graphically challenged which never helps.

Debugging NSDistributedNotificationCenter

2008-10-25 Thread Jeff Johnson
I'm using NSDistributedNotificationCenter to deliver notifications from a helper application to the main application. I followed the instructions from , i.e., sudo touch /var/log/do_dnserver_log and restart, but this doesn't

Re: Disable Sorting in NSTableView

2008-10-25 Thread Grant Limberg
That did the trick! Thanks! On Oct 25, 2008, at 1:33 AM, Quincey Morris wrote: On Oct 24, 2008, at 20:57, Grant Limberg wrote: Is it possible to disable the user's ability to resort the rows in a table by clicking on the column header? I have a table view that stores statistics in the or

Re: CFPreferences and init.

2008-10-25 Thread Kyle Sluder
On Sat, Oct 25, 2008 at 6:11 PM, Adam Penny <[EMAIL PROTECTED]> wrote: > My question is how do I do the checks for the if clause? The documentation says that if the key doesn't exist, the function returns NULL. So then you just check to see if your servers variable is null. The documentation als

CFPreferences and init.

2008-10-25 Thread Adam Penny
Hi there, It's been a few days, actually been able to make some progress on my own for a change! I've set up my initWithBundle method like this: - (id)initWithBundle:(NSBundle *)bundle { if (![super initWithBundle:bundle]) return nil; appID = CFSTR("uk.co.pennynet.Wopol"); serve

Re: NSPersistentDocument: "Settings" (DepartmentsAndEmployees)

2008-10-25 Thread Quincey Morris
On Oct 25, 2008, at 12:20, Jerry Krinock wrote: I also have a more fundamental question. Why must we override - initWithError:type: to initialize the 'department' ivar for new documents? It seems like we're "faking it". Generally, best practice is to allocate objects on-demand. And since

Re: NSPersistentDocument: "Settings" (DepartmentsAndEmployees)

2008-10-25 Thread Jerry Krinock
On 2008 Oct, 25, at 9:51, Quincey Morris wrote: you must force it to be registered (processPendingChanges) and then you can tell the undo manager to remove it (removeAllActions). Thank you, Quincey, that makes sense. I also have a more fundamental question. Why must we override - initWith

Re: Controlling Preference Panel Installation

2008-10-25 Thread Clark Cox
On Sat, Oct 25, 2008 at 7:48 AM, Antonio Ferraioli <[EMAIL PROTECTED]> wrote: > Hello, > > I've built a preference panel that will be installed in System Preferences, > > I'd like to let the user install the panel by double clicking it, > doing this the System Prenferences application asks > how th

Re: Controlling Preference Panel Installation

2008-10-25 Thread Nick Zitzmann
On Oct 25, 2008, at 8:48 AM, Antonio Ferraioli wrote: I'd like to limit the panel installation to the curent user ( "Install for this user only") avoiding the "Install for all users of this computer" option do you know if it is possible to do this ? It isn't. You'll have to use an alterna

How to exit a thread help...

2008-10-25 Thread Tom Jones
Hello, I'm writing a Foundation tool and I need to run a NSTask in a separate thread. I have it working but when the task completes the thread is still running. I tried issuing a [NSThread exit] but that did nothing. What am I missing? Thanks, tom This my main code #import #import "Thre

Re: Rotation in CAAnimation layers

2008-10-25 Thread douglas welton
do the following: grab your polaroid camera (I'm old school). go outside. find a sundial. take a picture. note the direction/appearance of the "real" shadow. turn the photograph upside down.* shadows belong to the layer, so if you rotate the layer, you also rotate the shadow - you do

Re: NSPersistentDocument: "Settings" (DepartmentsAndEmployees)

2008-10-25 Thread Quincey Morris
On Oct 25, 2008, at 08:15, Jerry Krinock wrote: - (id)initWithType:(NSString *)type error:(NSError **)error { self = [super initWithType:type error:error]; if (self != nil) { NSManagedObjectContext *managedObjectContext = [self managedObjectContext]; [self setDepartment:

Re: Consola application

2008-10-25 Thread parag vibhute
Hi Marcus, Many thanks for source code of Consola. Thanks, Palav On 10/25/08, Marcus <[EMAIL PROTECTED]> wrote: > >> Hello all, >> >> I have an open source application "Consola" (which I received from >> one of my >> friend). But I do not have its source code. >> >> FYI, there was an Open Source

Re: Creating icons and other resources

2008-10-25 Thread Benjamin Dobson
On 25 Oct 2008, at 17:03:54, [EMAIL PROTECTED] wrote: I hope this is appropriate the list, if not, my apologies. I was wondering how people go about creating the artwork that goes into their applications. I don't have a professional budget, and do things myself, but I'm not an artist, so my

Creating icons and other resources

2008-10-25 Thread lorenzo7620
I hope this is appropriate the list, if not, my apologies. I was wondering how people go about creating the artwork that goes into their applications. I don't have a professional budget, and do things myself, but I'm not an artist, so my creative skills are limited. I see many of the apps lis

NSPersistentDocument: "Settings" (DepartmentsAndEmployees)

2008-10-25 Thread Jerry Krinock
In Apple's DepartmentsAndEmployees Sample Code project, the document (MyDocument) has this instance variable: NSManagedObject* department ; I view this 'department' as special "Document Settings Ivar". There is always one and only one of them in each document. As a matter of fact, f

Controlling Preference Panel Installation

2008-10-25 Thread Antonio Ferraioli
Hello, I've built a preference panel that will be installed in System Preferences, I'd like to let the user install the panel by double clicking it, doing this the System Prenferences application asks how the panel will be installed - "Install for this user only" - "Install for all users of

Re: Rotation in CAAnimation layers

2008-10-25 Thread Ricky Sharp
On Oct 25, 2008, at 8:31 AM, DKJ wrote: I do this with a CAAnimation layer myLayer: myLayer.shadowOffset = CGSizeMake( 5.0, 5.0 ); and get a shadow on the upper and right edges. But when I rotate the layer 180 degrees, the shadow then appears on the lower and left edges. Real shad

Re: Rotation in CAAnimation layers

2008-10-25 Thread DKJ
I do this with a CAAnimation layer myLayer: myLayer.shadowOffset = CGSizeMake( 5.0, 5.0 ); and get a shadow on the upper and right edges. But when I rotate the layer 180 degrees, the shadow then appears on the lower and left edges. Real shadows don't do that. If the object were cir

NSPredicateEditor - row size

2008-10-25 Thread Chris Idou
Has anyone found a way to make a row in the NSPredicateEditor to have components taller than the standard height or a more complicated arrangement of components, or are you pretty much limited to one row of buttons, and text fields and similar sized components? Programs like Hazel are able to

Re: Can someone point me a Core Animation layer compositing example?

2008-10-25 Thread Scott Anguish
On 24-Oct-08, at 10:50 PM, Michael A. Crawford wrote: I need to learn how to take three or four Core-Animation layers and composite them on onto one another while animating, in order to simulate a complex gauge. I'm assuming this will be a lot easier than it is in Windows. The different

[moderator] Re: Apple Developer Forums

2008-10-25 Thread Scott Anguish
Yes, they are. Please keep them on topic. This thread isn't. scott [moderator] On 25-Oct-08, at 6:17 AM, Jean-Daniel Dupas wrote: aren't all [EMAIL PROTECTED] moderated by Apple ? Does it make them jokes or useless ? ___ Cocoa-dev mailing list

[Moderator] Re: Apple Developer Forums

2008-10-25 Thread Scott Anguish
This isn't appropriate for discussion here. If you have complaints, take them to [EMAIL PROTECTED] scott [moderator] On 24-Oct-08, at 11:04 PM, Stefan Arentz wrote: On Fri, Oct 24, 2008 at 12:15 PM, Randall Meadows <[EMAIL PROTECTED] > wrote: It looks like we're legit to discuss now!

Re: Apple Developer Forums

2008-10-25 Thread Jean-Daniel Dupas
Le 25 oct. 08 à 05:04, Stefan Arentz a écrit : On Fri, Oct 24, 2008 at 12:15 PM, Randall Meadows <[EMAIL PROTECTED] > wrote: It looks like we're legit to discuss now! Personally I think this is a big joke. You need to be signed up as a paying developer to acce

Re: Disable Sorting in NSTableView

2008-10-25 Thread Quincey Morris
On Oct 24, 2008, at 20:57, Grant Limberg wrote: Is it possible to disable the user's ability to resort the rows in a table by clicking on the column header? I have a table view that stores statistics in the order they are received by the program and shouldn't be resorted. Is there a way t