Re: Alternative startup for application

2010-04-06 Thread Jean-Daniel Dupas
Le 3 avr. 2010 à 05:13, Michael Nickerson a écrit : On Apr 02, 2010, at 10:12 PM, Gideon King wrote: That's the instance method. New in 10.6 is the class method of the same name, which is what I need in this case, since I don't have an event to work with. On 03/04/2010, at 12:09 PM,

Re: How do I get a file reference w/o relying on the path?

2010-04-06 Thread Jean-Daniel Dupas
Le 4 avr. 2010 à 19:50, Jens Alfke a écrit : You're saying that if I have a FSRef to a file, then the file is moved, the FSRef will still reference the moved file and not the location where it used to be? That's surprising to me, because FSRefs were created as a replacement for

Using Core Data ManagedObjectIDs to uniquely name files

2010-04-06 Thread Ken Tabb
Morning folks, I have a Snow Leopard non-document based Core Data app (currently XML based, but will be SQLite upon release). Supposing I have an entity (Employee) that would like to store an auxiliary file (a tiff of their mugshot), then as I see it I have the following options: [1]

Re: Using Core Data ManagedObjectIDs to uniquely name files

2010-04-06 Thread Gideon King
Hi Ken If someone created another copy of your database, I imagine the last path component could be duplicated, since it would not know about the other copy and create the same primary key. I believe that the URI is made up of the store id / entity / reference object. With a document based

Re: Implied use of Properties

2010-04-06 Thread Dave
On 2 Apr 2010, at 22:21, Klaus Backert wrote: Hi, Dave There are some typing errors in this code, I think, but anyway, this might be a case of lazy creation of an object inside a getter of another object. You will find the same e.g. in Apple's code examples about OpenGL, where the

What does console message unhandled property type encoding mean?

2010-04-06 Thread Sean McBride
Hi all, In 10.5.8 (but not 10.6.x) I see the following in Console.app when running my app: unhandled property type encoding: `{? =minXValuedmaxXValuedminYValuedmaxYValued}' I have a CALayer subclass that has a property: typedef struct { double minXValue; double maxXValue;

Re: Using Core Data ManagedObjectIDs to uniquely name files

2010-04-06 Thread Sean McBride
On Tue, 6 Apr 2010 12:27:18 +0100, Ken Tabb said: I have a Snow Leopard non-document based Core Data app (currently XML based, but will be SQLite upon release). Supposing I have an entity (Employee) that would like to store an auxiliary file (a tiff of their mugshot), then as I see it I have the

Re: How do I get a file reference w/o relying on the path?

2010-04-06 Thread Jon Pugh
At 9:54 AM +0200 4/6/10, Jean-Daniel Dupas wrote: Le 4 avr. 2010 à 19:50, Jens Alfke a écrit : You're saying that if I have a FSRef to a file, then the file is moved, the FSRef will still reference the moved file and not the location where it used to be? That's surprising to me, because

Re: Wondering about that iPad page curling

2010-04-06 Thread Laurent Daudelin
So, no other response from the regular crowd of resident experts on how Apple engineers did this? -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org Logiciels Nemesys Software

Re: Wondering about that iPad page curling

2010-04-06 Thread Alex Kac
Well they may have done it with a private API for CoreImage if that exists (not sure). THey may have done it with OpenGL. They may have taken their CoreImage code on desktop and ported a part of it to iBooks and used that. For you, most likely the best way to do it is using OpenGL. On Apr 6,

How could I make the first row not to be edited or moved in UITableView

2010-04-06 Thread Kalyanraju M
How could I make the first row not to be edited or moved in UITableView   I know that with  - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath the first row could be set not to move but if another cell is dropped above the first one this will we moved

NSPopUpButton items disabled

2010-04-06 Thread Frédéric Testuz
Hi, I have a pulldown button (NSPopUpButton) in an accessory view of a save panel. Before displaying the panel, I populate the popup with the name of the recent documents. My question is about the enable state of the pulldown menu items. In IB, I connect the action of the popup to a

Re: Wondering about that iPad page curling

2010-04-06 Thread Laurent Daudelin
Thanks, Alex. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org Logiciels Nemesys Software laurent.daude...@gmail.com Photo Gallery Store:

Re: Using Core Data ManagedObjectIDs to uniquely name files

2010-04-06 Thread Ken Tabb
Hi Sean, thanks for the reply. Aye I'd thought of packaging it all up in a package so that only deliberate saboteurs could harm the integrity of my lovely lovely app. In terms of UUIDs, I think you're right, it'll be safer - or rather I'll know that it's definitely my fault if it isn't

Re: How do I get a file reference w/o relying on the path?

2010-04-06 Thread Jon Pugh
At 8:43 AM -0700 4/6/10, Jon Pugh wrote: I had to change to explicitly saving an AliasRecord in an NSData to keep track of a file properly. I should probably clean up and share my code too. This uses an alias relative to your home folder. The alias is stored in NSUserDefaults under the

Re: [iPhone]Is it possible for apps to use the file sharing directory?

2010-04-06 Thread Matt Neuburg
On Sun, 4 Apr 2010 18:16:14 -0700, Kyle Sluder kyle.slu...@gmail.com said: On Sun, Apr 4, 2010 at 5:26 PM, Eli Bach eba...@gmail.com wrote: The 3.2 SDK is now under the 'regular' nda, as it's no longer beta/prerelease.  It's a small 2.4 Gb download... Historically, Scott has needed to give the

NSPrintSavePath not working correctly?

2010-04-06 Thread Brian Postow
I'm trying to set up a print dialog, so that if the user tries to save to PDF, it gets a reasonable filename. I currently have: NSPrintInfo* pi = [NSPrintInfo sharedPrintInfo]; NSMutableDictionary *dict = [pi dictionary]; [dict setObject: name forKey: NSPrintSavePath];

Trying to get data from the AB

2010-04-06 Thread Development
I am using the following: [settings setObject:(NSString *)ABRecordCopyValue(person, kABPersonFirstNameProperty) forKey:@First Name]; [settings setObject:(NSString *)ABRecordCopyValue(person, kABPersonLastNameProperty) forKey:@Last Name]; //

Re: [iPhone]Is it possible for apps to use the file sharing directory?

2010-04-06 Thread Kyle Sluder
On Tue, Apr 6, 2010 at 11:12 AM, Matt Neuburg m...@tidbits.com wrote: Anyone can read the iPad docs at Apple's site, without logging in. This is public information, so it's open to discussion anywhere. m. The entire reason I mentioned it is because there have been cases in the past where,

Re: Wondering about that iPad page curling

2010-04-06 Thread Gleb Dolgich
http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html -- Gleb Dolgich http://pixelespressoapps.com On 6 Apr 2010, at 16:56, Laurent Daudelin wrote: So, no other response from the regular crowd of resident experts on how Apple engineers did this? -Laurent. --

Re: Wondering about that iPad page curling

2010-04-06 Thread glenn andreas
That relies on undocumented private APIs, which is both off topic for this list, and, more importantly, grounds for getting your app rejected when submitted to the AppStore. On Apr 6, 2010, at 2:00 PM, Gleb Dolgich wrote:

Re: Wondering about that iPad page curling

2010-04-06 Thread Alex Kac
Although from the comments it seems to have garnered a job offer from Apple on the Core Animation team. Kind of interesting really. On Apr 6, 2010, at 2:26 PM, glenn andreas wrote: That relies on undocumented private APIs, which is both off topic for this list, and, more importantly, grounds

NSImageView Will Not Alias Images

2010-04-06 Thread Chris Tracewell
I am trying to get NSImageView to alias dropped images, but it refuses. Just spent an hour looking and trying several variations to no avail. Here's what I have done in a subclass of NSImageView. -(void)drawRect:(NSRect)rect { [[NSGraphicsContext currentContext]

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-06 Thread Jens Alfke
On Apr 5, 2010, at 9:10 PM, Chase Meadors wrote: I've been searching google for a while, and have repeatedly stumbled across mention of an Objective-C ID3 framework I looked at it a while back and might still have a copy somewhere; I'll look for it. What do you need the tags for? If you

Re: Implied use of Properties

2010-04-06 Thread Klaus Backert
On 6 Apr 2010, at 16:19, Dave wrote: Also as far as I can see, there are a couple of draw-backs to doing it this way. In the example: -(ClassY*) mClassY { if (mClassY == nil) { mClassY = [[ClassY alloc] initWithData:someData]: } return mClassY; } The reasons I don't

Re: NSImageView Will Not Alias Images

2010-04-06 Thread Jens Alfke
On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote: I am trying to get NSImageView to alias dropped images, but it refuses. Nitpick: you mean antialias. Aliasing is what creates the jaggies, antialiasing smooths them away. Just spent an hour looking and trying several variations to no

Re: Trying to get data from the AB

2010-04-06 Thread Jens Alfke
On Apr 6, 2010, at 11:48 AM, Development wrote: ABMutableMultiValueRef multiValue = ABRecordCopyValue(person, kABPersonAddressProperty); **Crashes here*** CFDictionaryRef dict = ABMultiValueCopyValueAtIndex(multiValue, 0); Did you check whether 'multiValue' is NULL? CF-based APIs don't

iPhone Programming For OS X Coders?

2010-04-06 Thread Jens Alfke
I have to confess that I haven't yet learned UIKit. The bits of iPhone development I've done so far have used networking and crypto APIs, and CoreAnimation, but hardly any of the UIKit classes. What would be the best book for me to learn from? Obviously most of the books out there don't

Re: Trying to get data from the AB

2010-04-06 Thread Development
There is?? OMG, I forgot to mention I'm on iPhone. On Apr 6, 2010, at 3:00 PM, Jens Alfke wrote: On Apr 6, 2010, at 11:48 AM, Development wrote: ABMutableMultiValueRef multiValue = ABRecordCopyValue(person, kABPersonAddressProperty); **Crashes here*** CFDictionaryRef dict =

Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Jack Nutting
On Wed, Apr 7, 2010 at 12:29 AM, Jens Alfke j...@mooseyard.com wrote: I have to confess that I haven't yet learned UIKit. The bits of iPhone development I've done so far have used networking and crypto APIs, and CoreAnimation, but hardly any of the UIKit classes. What would be the best book

Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Bob Estes
I think Dave Mark's iPhone programming books are just what you want. On Apr 6, 2010, at 6:29 PM, Jens Alfke wrote: I have to confess that I haven't yet learned UIKit. The bits of iPhone development I've done so far have used networking and crypto APIs, and CoreAnimation, but hardly any of

Tricky binding and continuous update problem

2010-04-06 Thread Chris Idou
I've got a problem that I had working, but my app suddenly seems broken, and I'm not sure if I did something or what. All I know is old versions of my app work, but now my code base doesn't. I've got a UI with a NSTableView at the top, and some individual fields at the bottom. Typical UI

Re: iPhone Programming For OS X Coders?

2010-04-06 Thread David Rowland
On Apr 6, 2010, at 3:29 PM, Jens Alfke wrote: I have to confess that I haven't yet learned UIKit. The bits of iPhone development I've done so far have used networking and crypto APIs, and CoreAnimation, but hardly any of the UIKit classes. What would be the best book for me to learn

Re: NSImageView Will Not Alias Images

2010-04-06 Thread Ken Ferry
On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke j...@mooseyard.com wrote: On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote: I am trying to get NSImageView to alias dropped images, but it refuses. Nitpick: you mean antialias. Aliasing is what creates the jaggies, antialiasing smooths them

Re: Wondering about that iPad page curling

2010-04-06 Thread Kiel Gillard
Can UIViewAnimationTransitionCurlUp/Down be of any use? On 07/04/2010, at 2:10 AM, Alex Kac wrote: Well they may have done it with a private API for CoreImage if that exists (not sure). THey may have done it with OpenGL. They may have taken their CoreImage code on desktop and ported a part

Re: NSImageView Will Not Alias Images

2010-04-06 Thread Chris Tracewell
On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote: On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke j...@mooseyard.com wrote: On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote: I am trying to get NSImageView to alias dropped images, but it refuses. Nitpick: you mean antialias. Aliasing is what

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-06 Thread Adam R. Maxwell
On Apr 6, 2010, at 12:08 PM, Kazior Fukacz wrote: Thanks for your answers! By the way, are you using garbage collection? If not, then you're leaking several objects (those pointed to by 'netstat', 'pipe', and 'string'). Yeah, I suspect that the pipes (and corresponding NSFileHandles)

Re: Tricky binding and continuous update problem

2010-04-06 Thread Jerry Krinock
On 2010 Apr 06, at 16:36, Chris Idou wrote: If I turn off Continuously Update Value, it works sensibly, Turn it off. Look at any of Apple's Sample Code. Also, Cocoa Design Rule #1: If something is off/on by default, don't change it unless you're knowingly doing something weird. albeit

Re: Tricky binding and continuous update problem

2010-04-06 Thread Chris Idou
I am using an NSArrayController. I don't know, it seems to me like having everything always in synch is nicer. The user can see immediately how changing one field is affecting the other. And it used to work. - Original Message From: Jerry Krinock je...@ieee.org To: Chris Idou

Re: NSImageView Will Not Alias Images

2010-04-06 Thread Laurent Daudelin
On Apr 6, 2010, at 17:24, Chris Tracewell wrote: On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote: On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke j...@mooseyard.com wrote: On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote: I am trying to get NSImageView to alias dropped images, but it

Re: Tricky binding and continuous update problem

2010-04-06 Thread Kyle Sluder
On Tue, Apr 6, 2010 at 5:28 PM, Chris Idou idou...@yahoo.com wrote: I don't know, it seems to me like having everything always in synch is nicer. The user can see immediately how changing one field is affecting the other. And it used to work. That will wreak havoc with Undo. Continuously

Re: Alternative Location of Cocoa ID3 Framework??

2010-04-06 Thread Chase Meadors
I'd much appreciate it if you would look. That's precisely the purpose I need it for; to edit change tags. Thanks a lot - Chase. On Apr 6, 2010, at 4:36 PM, Jens Alfke wrote: On Apr 5, 2010, at 9:10 PM, Chase Meadors wrote: I've been searching google for a while, and have repeatedly

Re: Tricky binding and continuous update problem

2010-04-06 Thread Chris Idou
How does it wreak havoc with undo? Undo seems to work still. In something like TextExpander, you change the textfield where your expansion goes, and the table in the left hand side changes as you type. That's what I was aiming for. But I've found why it suddenly stopped working. I stumbled

Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Henry McGilton
On Apr 6, 2010, at 3:29 PM, Jens Alfke wrote: I have to confess that I haven't yet learned UIKit. The bits of iPhone development I've done so far have used networking and crypto APIs, and CoreAnimation, but hardly any of the UIKit classes. What would be the best book for me to learn

Re: NSImageView Will Not Alias Images

2010-04-06 Thread Ken Ferry
On Tue, Apr 6, 2010 at 5:24 PM, Chris Tracewell ch...@thinkcl.com wrote: On Apr 6, 2010, at 4:50 PM, Ken Ferry wrote: On Tue, Apr 6, 2010 at 2:58 PM, Jens Alfke j...@mooseyard.com wrote: On Apr 6, 2010, at 1:17 PM, Chris Tracewell wrote: I am trying to get NSImageView to alias dropped

multiple-page print support in NSView

2010-04-06 Thread Rua Haszard Morris
I am trying to write an NSView subclass to render a multi-page printout. What I would like is to use the page/paper size in calculating the dimensions of each page; for example, if the printout is made up of N rows of items, each item rendering as 60-point-tall row. So, assuming 10 rows of

Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Philip Mobley
On Apr 6, 2010, at 7:06 PM, Henry McGilton wrote: There's no NSBezierPath parallel on the phone, so you get down into Core Graphics a lot more than with Appkit. iPhone 3.2 SDK just added UIBezierPath, but the 3.2 OS will only run on iPad right now. Who knows if the iPhone will ever run 3.2

Re: iPhone Programming For OS X Coders?

2010-04-06 Thread Kyle Sluder
On Tue, Apr 6, 2010 at 9:42 PM, Philip Mobley p...@dreystone.com wrote: iPhone 3.2 SDK just added UIBezierPath, but the 3.2 OS will only run on iPad right now.  Who knows if the iPhone will ever run 3.2 OS or if they will just wait until 4.0. I imagine we'll find out on Thursday. --Kyle

Xcode build settings (such as llvm-config)

2010-04-06 Thread Samuel Williams
Hello, I want to execute a command to get a list of libraries for inclusion into my application llvm-config --libs Gives me: -lLLVMXCoreCodeGen -lLLVMXCoreAsmPrinter -lLLVMXCoreInfo -lLLVMSystemZCodeGen -lLLVMSystemZAsmPrinter -lLLVMSystemZInfo [snip] Normally it is used such as

Localized name of trash folder

2010-04-06 Thread Aniruddha Maru
Does anyone know a way to get the localized name of the trash folder? I tried NSFileManager's displayNameAtPath: and LSCopyDisplayNameForRef on ~/.trash, but neither of them seem to be working :( Thanks, Aniruddha ___ Cocoa-dev mailing list