ImageIO key properties

2008-04-07 Thread Mirko Viviani
Hi, for an application targeted for 10.4 I need to access the value of some key properties defined for 10.5 in CGImageProperties.h, like kCGImagePropertyExifAuxDictionary. Is there a legal way to do this? Thank you. Mirko ___ Cocoa-dev mailing

Re: Objective-C Instance Variable Names

2008-04-07 Thread Todd Blanchard
Too late, I've been doing that since 1990 in C++. Seriously, I've yet to run into a problem with it and I have been doing it forever. Just don't be overly general with your variable names. Like I probably wouldn't use _window in a custom view subclass or anything. -Todd Blanchard On

Re: Using existing SQLite database with core data?

2008-04-07 Thread Quincey Morris
On Apr 6, 2008, at 22:44, mmalc crawford wrote: The fact that Core Data is an object graph management and persistence framework does not in an of itself preclude it from reverse engineering an existing database. EOF is also an object graph management and persistence framework but it is

Re: Using existing SQLite database with core data?

2008-04-07 Thread mmalc crawford
On Apr 7, 2008, at 12:31 AM, Peter Zegelin wrote: Thanks everyone - I'm quite new to this and naively assumed it might be doable. I can see now why it can't. To reiterate, there is no reason *in principle* why Core Data could not do this. If it's something you would like to see, file an

Re: Using existing SQLite database with core data?

2008-04-07 Thread Quincey Morris
On Apr 7, 2008, at 00:51, mmalc crawford wrote: To reiterate, there is no reason *in principle* why Core Data could not do this. Indeed, there's no reason in principle why Core Data could not be EOF. Yet a core principle of Core Data is its abstraction of the model away from the

Re: Using existing SQLite database with core data?

2008-04-07 Thread mmalc crawford
On Apr 7, 2008, at 1:50 AM, Quincey Morris wrote: To reiterate, there is no reason *in principle* why Core Data could not do this. Indeed, there's no reason in principle why Core Data could not be EOF. Yet a core principle of Core Data is its abstraction of the model away from the

Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new to Cocoa am getting nowhere really fast! For a start, I don't seem to be able to find a way to test for a modifier key during the actual drag. Can

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Allison Newman
I'm no expert, but you might want to look at mouseDownFlags in NSCell. Alternatively, you can recover the modifiers from the NSEvent given in mouseDown in your control. Or, you could wait until someone that knows what they are actually talking about replies :-) Alli

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Jean-Daniel Dupas
Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new to Cocoa am getting nowhere really fast! For a start, I don't seem to be able to find a way to test for

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
On 07/04/2008, at 9:14 PM, Allison Newman wrote: I'm no expert, but you might want to look at mouseDownFlags in NSCell. Alternatively, you can recover the modifiers from the NSEvent given in mouseDown in your control. Or, you could wait until someone that knows what they are actually

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new to Cocoa am getting nowhere really fast! For a

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Ron Fleckner
On 07/04/2008, at 10:10 PM, Peter Zegelin wrote: On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on the state of a modifier key and being totally new

Obj-C idioms for list based tasks

2008-04-07 Thread Paul Sargent
Coming from other object based languages I'm aware that each language can have it's own idioms for common tasks. In particular coming from doing a lot of python, I'm finding myself wanting to do a few things with NSArrays that I would do quite easily with python lists. Can anybody suggest a good

How inspect pending performSelectorOnMainThread ?

2008-04-07 Thread Jacob Engstrand
Hi all, In a separate thread I call: [self performSelectorOnMainThread: @selector(broadcastMessage:) withObject: nil waitUntilDone: NO]; Now, is there a way for the main thread to inspect the queue of pending messages, their targets and arguments? (I would like my unit test to verify that

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 14:10, Peter Zegelin a écrit : On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an NSSlider (while it is being dragged) depending on

Re: Is this a bug in Cocoa 'isLike' ?

2008-04-07 Thread Matt Burnett
Sounds like a bug to me. I have the same issue on a MBP with 10.5.2. Although i suppose this could be 'working as intended' since the pattern formats for isLike: dont seem to be well documented. On Apr 7, 2008, at 9:11 AM, Yvan BARTHÉLEMY wrote: On my machine (quite recent 20 inches iMac

Re: Objective-C Instance Variable Names

2008-04-07 Thread Richard Somers
On Apr 5, 2008, at 7:17PM, Quincey Morris wrote: The most common situation where I run into local/instance variable name conflicts is setter methods. If the property and the instance variable are both 'whatever', it makes sense to me to call the setter argument variable 'newWhatever',

Re: Objective-C Instance Variable Names

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 1:45 AM, Kyle Sluder wrote: Then I'm sure you're very familiar with the fragile base class problem. Just don't do it. Ivar name conflicts don't have anything to do with the FBC problem, not in compiled languages. The FBC problem arises when the size of a superclass

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Jean-Daniel Dupas
Le 7 avr. 08 à 16:03, Peter Zegelin a écrit : On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 14:10, Peter Zegelin a écrit : On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter Zegelin a écrit : I'm trying to constrain the value of an

Re: Is this a bug in Cocoa 'isLike' ?

2008-04-07 Thread Jean-Daniel Dupas
If this is not a bug in Cocoa, so it's a bug in the documentation, so you can fill a bug report. Le 7 avr. 08 à 16:26, Matt Burnett a écrit : Sounds like a bug to me. I have the same issue on a MBP with 10.5.2. Although i suppose this could be 'working as intended' since the pattern

Re: Obj-C idioms for list based tasks

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 5:33 AM, Paul Sargent wrote: Can anybody suggest a good way to: 1) Given an ordered set of objects, create a new non-mutable ordered set, with all the duplicates removed? 2) Given an ordered set of objects, create a new non-mutable ordered set, with each entry being the

Re: How inspect pending performSelectorOnMainThread ?

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 6:24 AM, Jacob Engstrand wrote: In a separate thread I call: [self performSelectorOnMainThread: @selector(broadcastMessage:) withObject: nil waitUntilDone: NO]; Now, is there a way for the main thread to inspect the queue of pending messages, their targets and arguments?

Re: How inspect pending performSelectorOnMainThread ?

2008-04-07 Thread Jean-Daniel Dupas
Le 7 avr. 08 à 16:49, Jens Alfke a écrit : On 7 Apr '08, at 6:24 AM, Jacob Engstrand wrote: In a separate thread I call: [self performSelectorOnMainThread: @selector(broadcastMessage:) withObject: nil waitUntilDone: NO]; Now, is there a way for the main thread to inspect the queue of

Re: Objective-C Instance Variable Names

2008-04-07 Thread glenn andreas
On Apr 7, 2008, at 9:39 AM, Jens Alfke wrote: On 7 Apr '08, at 1:45 AM, Kyle Sluder wrote: Then I'm sure you're very familiar with the fragile base class problem. Just don't do it. Ivar name conflicts don't have anything to do with the FBC problem, not in compiled languages. The FBC

Re: Image Processing

2008-04-07 Thread Kenny Leung
If you ask an NSImage for its size, the DPI in the image is taken into account. You can ask for pixelsHigh and pixelsWide in order to get the number of pixels. -Kenny On Apr 6, 2008, at 1:40 PM, Lorenzo wrote: Still working with image-processing... I have a source image 1680 x 1050 with

[Meeting] Chicago CocoaHeads / Cawug - MacRuby

2008-04-07 Thread Bob Frank
The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group (CAWUG) is holding our next meeting Tuesday, April 8th, at 7:00 PM at the Apple Store on Michigan Ave. Agenda: - Introductions Announcements - Chuck Remes on MacRuby - adjournment to O'Toole's

Re: Obj-C idioms for list based tasks

2008-04-07 Thread William Turner
On Apr 7, 2008, at 5:33 AM, Paul Sargent wrote: Can anybody suggest a good way to: 1) Given an ordered set of objects, create a new non-mutable ordered set, with all the duplicates removed? You could do this using the KVC set and array operators

NSURLConnection status updates

2008-04-07 Thread Matt Burnett
I am using NSURLConnection to send large posts (1MB) to a web server. How can i get the status/progress information for sending the request. I can get the progress for receiving the reply with connection:didReceiveResponse: and connection:didReceiveData:, but i dont seem to see anything

Re: Obj-C idioms for list based tasks

2008-04-07 Thread Jake Carter
You may also want to look in to NSPredicate and an arrays 'filteredArrayUsingPredicate:' method. http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSPredicate_Class/Reference/NSPredicate.html http://theocacao.com/document.page/346

Re: Obj-C idioms for list based tasks

2008-04-07 Thread John Stiles
Cocoa doesn't have ordered sets. It has arrays (NSArray), unordered sets (NSSet), and unordered key-value tables (NSDictionary). Any of these can optionally be mutable. NSCountedSet also allows for the equivalent of a multiset, but for some reason there is no NSCountedDictionary, for the

Re: Saving AttributedString with Attachments to RTFD

2008-04-07 Thread Douglas Davidson
As others have noted, RTFD is a packaged file format, consisting of a directory in the file system containing the underlying RTF and any attachments. There are therefore two representations of RTFD: first, the on-disk format, and second, a serialized format used on the pasteboard. There

Open-source NSToolbar?

2008-04-07 Thread John Stiles
I'm looking for an open-source NSToolbar-like toolbar implementation... do any exist? I haven't found any yet. I want to check it out and see how some things are done... I don't really need a ton of features outside the standard toolbar stuff, it's more for learning/research to see what can

Newbie question

2008-04-07 Thread john darnell
Hello all: For those of you who do not like answering elementary questions, you might want to give this message a pass. I am making my first foray into writing Cocoa applications, and I have created a very simple class. The header file looks like this: /* Chooser */ #import

Re: Open-source NSToolbar?

2008-04-07 Thread Daniel Jalkut
Cocotron is a great place to look for things like this: http://cocotron.googlecode.com/svn/trunk/AppKit/NSToolbar.subproj/ Don't know how well developed the NSToolbar is, but in general they have a lot of cool stuff ported. Daniel On Apr 7, 2008, at 12:47 PM, John Stiles wrote: I'm looking

Re: Open-source NSToolbar?

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 9:47 AM, John Stiles wrote: I'm looking for an open-source NSToolbar-like toolbar implementation... do any exist? I haven't found any yet. I'm not aware of any. My hunch is that it'd be a pain to re-implement with all of the features users expect from standard toolbars.

Re: Newbie question

2008-04-07 Thread Michael Vannorsdel
Change the function declarations/definitions to - (NSString*)ChooseString:(int) IntVal (the * goes inside the parenthesis) On Apr 7, 2008, at 10:45 AM, john darnell wrote: Hello all: For those of you who do not like answering elementary questions, you might want to give this message a

Re: Newbie question

2008-04-07 Thread Jean-Daniel Dupas
Recheck the method declaration syntax in your book. It's - (NSString *)myMethodName:(type)arg; and not - (NSString ) *myMethodName:(type)arg; the '*' in NSString * is part of the type. Le 7 avr. 08 à 18:45, john darnell a écrit : Hello all: For those of you who do not like answering

Re: Newbie question

2008-04-07 Thread Hamish Allan
On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel [EMAIL PROTECTED] wrote: Change the function declarations/definitions to - (NSString*)ChooseString:(int) IntVal (the * goes inside the parenthesis) Additionally, it's good practice to start method names and variables with lowercase letters;

Re: Newbie question

2008-04-07 Thread Douglas Davidson
On Apr 7, 2008, at 10:28 AM, Hamish Allan wrote: On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel [EMAIL PROTECTED] wrote: Change the function declarations/definitions to - (NSString*)ChooseString:(int) IntVal (the * goes inside the parenthesis) Additionally, it's good practice to

Re: ImageIO key properties

2008-04-07 Thread David Duncan
On Apr 6, 2008, at 11:22 PM, Mirko Viviani wrote: for an application targeted for 10.4 I need to access the value of some key properties defined for 10.5 in CGImageProperties.h, like kCGImagePropertyExifAuxDictionary. Is there a legal way to do this? Assuming you have your project set

Re: Obj-C idioms for list based tasks

2008-04-07 Thread Erik Buck
This is a prime use for Higher Order messaging: http://www.metaobject.com/papers/Higher_Order_Messaging_OOPSLA_2005.pdf http://www.cocoadev.com/index.pl?HigherOrderMessaging http://www.oreilly.com/pub/a/mac/2004/07/16/hom.html HOM takes this // which of these employee objects earn more than

Re: Southern California Coders? (Cocoaheads carpool)

2008-04-07 Thread Brad Willoughby
To follow up, a few of us from San Diego chatted offline and have decided to meet around 5:30pm this Wednesday at Vinaka Cafe ( http://www.yelp.com/biz/vinaka-cafe-carlsbad ) so we can carpool up to Cocoaheads in Lake Forest. Contact me offline if you'd like to hitch a ride or be a driver.

RE: Newbie question

2008-04-07 Thread john darnell
Thanks to all of you who answered my question. I had seven answers within an hour of posting, and it shows me that this bunch is willing to help, even with simple questions (I groaned when I read the first message, and realized how *obvious* the syntax error was). I'll try not to abuse this

[OT] Dallas Cocoa Meetup?

2008-04-07 Thread Patrick Burleson
I was wondering how many on this list might interested in a Cocoa type meetup in the Dallas/Fort Worth area? I've very new to Cocoa and I think it would be great to get some people together to learn from each other and to see what others are working on. Maybe even get a full fledged CocoaHeads

Re: Newbie question

2008-04-07 Thread Johannes Huning
There're also 2 articles concerning cocoa style available on CocoaDevCentral: http://cocoadevcentral.com/articles/82.php On Apr 7, 2008, at 7:40 PM, Douglas Davidson wrote: On Apr 7, 2008, at 10:28 AM, Hamish Allan wrote: On Mon, Apr 7, 2008 at 6:05 PM, Michael Vannorsdel [EMAIL

Re: NSViewController's representedObject and NSArrayController's selection don't mix?

2008-04-07 Thread Jacob Lukas
In diagnosing this problem, I tried to use the NSKeyValueObservingOptionPrior when observing NSArrayController's selection, but I never got a observeValueForKeyPath:ofObject:change:context: where the change dictionary contained an NSKeyValueChangeNotificationIsPriorKey entry. This leads

Re: ImageIO key properties

2008-04-07 Thread Mirko Viviani
On 07/apr/08, at 19:43, David Duncan wrote: for an application targeted for 10.4 I need to access the value of some key properties defined for 10.5 in CGImageProperties.h, like kCGImagePropertyExifAuxDictionary. Assuming you have your project set properly, standard weak-linking policies

Re: ImageIO key properties

2008-04-07 Thread David Duncan
On Apr 7, 2008, at 12:46 PM, Mirko Viviani wrote: I've tried linking with -framework and -weak_framework with the same results. kCGImagePropertyDNGDictionary and others properties declared in CGImageProperties.h are not defined in the framework. Is it a bug or am I missing something? You

NSCoder Night (Re: [OT] Dallas Cocoa Meetup?)

2008-04-07 Thread Chris Hanson
On Apr 7, 2008, at 11:36 AM, Patrick Burleson wrote: I was wondering how many on this list might interested in a Cocoa type meetup in the Dallas/Fort Worth area? I've very new to Cocoa and I think it would be great to get some people together to learn from each other and to see what others are

Re: Scaling a window background image quickly

2008-04-07 Thread Mike R. Manzano
Do you know if SVG in a webkit view performs faster than a PDF in an NSImageView? Mike On Apr 6, 2008, at 3:38 PM, glenn andreas wrote: If only there were some sort of Scalable Vector Graphics format that were available, oh, yeah, there is - SVG is available via WebKit on Leopard, not to

Re: Objective-C Instance Variable Names

2008-04-07 Thread Ricky Sharp
On Apr 7, 2008, at 10:26 AM, Jim Correia wrote: There is already the possibility of KVC collisions regardless of how you name your iVars. Consider... NSBaseClass, and MyClass derived from it. Targetting 10.4, MyClass has an iVar named mImportantProperty (using m prefix here only for

Re: [OT] Dallas Cocoa Meetup?

2008-04-07 Thread elliott . harris
Hey Patrick, I was going to start a chapter up earlier in the year, but things got busy, and I'll be in California all summer. I'm certainly interested in it when I get back in the Fall, and possibly even gauging interest before then. Cheers, Elliott

Re: [OT] Dallas Cocoa Meetup?

2008-04-07 Thread Waqar Malik
I would be interested in a group closer to Fort Worth (Grapevine, Southlake, Keller). --Waqar On Apr 7, 2008, at 1:36 PM, Patrick Burleson wrote: I was wondering how many on this list might interested in a Cocoa type meetup in the Dallas/Fort Worth area? I've very new to Cocoa and I think it

[MEET]: Los Angeles CocoaHeads Thursday April 10th 7:30pm

2008-04-07 Thread Rob Ross
Howdy LA CocoaHeads! Ricardo Silva will be giving us a presentation on Quartz Composer. We meet on Thursday at the offices of E! Entertainment at 7:30pm. Our meeting location is 5750 Wilshire Blvd Los Angeles, CA 90036. Here's a google map of the location:

Re: Using existing SQLite database with core data?

2008-04-07 Thread Quincey Morris
On Apr 7, 2008, at 12:10, Chris Hanson wrote: On Apr 7, 2008, at 1:50 AM, Quincey Morris wrote: Yet a core principle of Core Data is its abstraction of the model away from the structure of the various persistent store formats. Core Data already offers the ability for developers to use an

Binding NSTableColumn to NSArrayController programatically.

2008-04-07 Thread Martin Linklater
Hi - I'm having trouble binding my table column to a key in my NSArrayController. My NSArrayController is set to control an array of NSMutableDictionary objects. This array controller has its contentsArray bound to the 'actualArray' (NSMutableArray) of my class object. When I set the

NSConnection registerName

2008-04-07 Thread SD
I have a deamon application that starts up and registers itself using a pre-defined name. (NSConnection registerName: name] I have another application that is started and it looks for the connection with [NSConnection rootProxyForConnectionWithRegisteredName: name host:nil]. This all works

[SOLVED] Re: NSViewController's representedObject and NSArrayController's selection don't mix?

2008-04-07 Thread Jacob Lukas
The problem ended up being that the object returned by - [NSArrayController selection] is a private proxy object, which dynamically proxies the current selection of the array controller. This means that the views were trying to stop observing the current selection's relationships, rather

Continunous NSSegmentedControl?

2008-04-07 Thread Randall Meadows
I have an NSSegmentedControl on which I've enabled the continuous setting (via IB). However, it doesn't send out continuous messages while I'm continually pressing one of the segments; it only fires (once) upon mouseUp. I can find no documentation that says that NSSegmentedControl

printing PDF issues

2008-04-07 Thread Victor Bovio
Hi, I have a document-based Cocoa application, in which I display quartz routines directly to the context of my NSView. Following the documentation I added this methods to enable printing in my application: on NSDocument: - (void)printDocumentWithSettings:(NSDictionary *)printSettings

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
On 08/04/2008, at 12:41 AM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 16:03, Peter Zegelin a écrit : On 07/04/2008, at 10:46 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 14:10, Peter Zegelin a écrit : On 07/04/2008, at 9:07 PM, Jean-Daniel Dupas wrote: Le 7 avr. 08 à 12:14, Peter

Apparent bug with button hotkeys that use shift

2008-04-07 Thread John Stiles
I am trying to add some hotkeys to buttons in my app, and I've hit a weird snag. Specifically, the shift modifier flag appears to be ignored for anything other than alphanumeric keys—i.e. I can't make a button that corresponds to cmd+F1 and a second button that corresponds to cmd+shift+F1.

Re: Problems with Split Views?

2008-04-07 Thread Ben Einstein
For the most part, anything you want to do with NSSplitView you can do with RBSplitView (or others) and vice versa. Where RBSplitView really excels is its ease of implementation. Even though NSSplitView in 10.5 is significantly better, I still find that RBSlitView has the upper hand in

Re: Apparent bug with button hotkeys that use shift

2008-04-07 Thread John Stiles
For any curious Apple engineers, I've just filed this issue as rdar://5848023 and attached a test app (four lines of code). John Stiles wrote: I am trying to add some hotkeys to buttons in my app, and I've hit a weird snag. Specifically, the shift modifier flag appears to be ignored for

fileHFSCreatorCode fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Mike
I need to get the creator code of my app's bundle without diving into the bundle and reading the plist directly. My code looks like this: OSType creator = 0; NSDictionary *itemDictionary = nil; itemDictionary = [ defaultFileManager fileAttributesAtPath:enumeratedItem traverseLink:NO ];

Re: Constraining a NSSlider to Certain Values

2008-04-07 Thread Peter Zegelin
I have managed to get my slider working the way I want it to by overriding mousedown and mousedragged, however there is still one small detail. I cant see how to make the slider knob show its 'pushed' image while the slider is being dragged. Does anyone know how to do this? thanks!

Re: fileHFSCreatorCode fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Ken Thomases
On Apr 7, 2008, at 10:11 PM, Mike wrote: I need to get the creator code of my app's bundle without diving into the bundle and reading the plist directly. [... snip ...] The problem is, fileHFSCreatorCode on the returned attributes dictionary always returns 0 or an empty OSType. Is there

Re: Problems with Split Views?

2008-04-07 Thread Peter Zegelin
Yes it does - thanks! RBSplitView works great and actually experimented with it before playing around with the regular NSSplitView. Peter On 08/04/2008, at 10:35 AM, Ben Einstein wrote: For the most part, anything you want to do with NSSplitView you can do with RBSplitView (or others)

Re: [OT] Dallas Cocoa Meetup?

2008-04-07 Thread Dennis J. Hagner
Hey, count me in. I'm in Irving. Dennis J. Hagner -- Date: Mon, 7 Apr 2008 15:49:26 -0500 From: Waqar Malik [EMAIL PROTECTED] Subject: Re: [OT] Dallas Cocoa Meetup? To: Patrick Burleson [EMAIL PROTECTED] Cc: cocoa-dev@lists.apple.com Message-ID: [EMAIL PROTECTED]

Re: fileHFSCreatorCode fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Ken Thomases
On Apr 7, 2008, at 10:49 PM, Mike wrote: In that case, how do I get the fullpath to the item from the iterator? There doesn't seem to be any key in the info dictionary for the current item's fullpath. Huh? You mean the enumeratedItem from your original code snippet? You never indicated

Re: NSURLConnection status updates

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 8:35 AM, Matt Burnett wrote: I am using NSURLConnection to send large posts (1MB) to a web server. How can i get the status/progress information for sending the request. Set the request body to a custom stream implementation, and your stream will get called as the

Re: NSConnection registerName

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 3:32 PM, SD wrote: If I launch the deamon via command line using my regular user and then I launch the application using the Security.framework authentication, the application does not find the connection and starts a second deamon. Sounds like the app and daemon are

Re: How do I embed a font in an app?

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 5:52 PM, Brad Peterson wrote: Just embed it as a resource, and then use the code below to load it for use. This seems less efficient (and more complicated) than either of the two earlier solutions. Loading the font into memory first means it takes up heap space, which

Re: fileHFSCreatorCode fileAttributesAtPath:traverseLink on app bundles

2008-04-07 Thread Jens Alfke
On 7 Apr '08, at 8:11 PM, Mike wrote: I need to get the creator code of my app's bundle without diving into the bundle and reading the plist directly. You're mixing up HFS creator codes with bundle identifiers, I think. HFS creator codes are attributes of document files that identify what