Re: Dial with Bluetooth
On Oct 15, 2008, at 4:20 PM, Thomas Bartelmess wrote: I would like to know if anybody has some expirience with the IOBluetooth Classes. Can you tell me how hard it is to Dial a number on a Phone with Bluetooth. I'm new to Bluetooth (I don't know very much about it) so please don't be too rude. It isn't that hard, but it only works with the small handful of phones that support RFCOMM. Apple most certainly does not support RFCOMM on the **; I've only seen some Nokia and Sony Ericsson phones support it. Nick Zitzmann http://www.chronosnet.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: tearing my hair, ok here is a compilable example.
That thought had occured to me, but making it readwrite doesn't seem to help. Cocoa NIB loading doesn't seem to call accessors, it seems to access them more directly. I even tried this: -(Class1 *)class1 { return class1; } -(void)setClass1:(Class1 *)v { NSLog(@setClass1: %@, v); [self willChangeValueForKey:@class1]; class1 = v; [self didChangeValueForKey:@class1]; } But they don't get called. I even tried adding to awakeFromNIB: id old = [self class1]; [self setClass1:nil]; [self setClass1:old]; To try and force the issue, but to no avail. Someone has observed that my code works when called from main() and bypassing IB. But it still doesn't work when loaded from a NIB! --- On Wed, 10/15/08, Quincey Morris [EMAIL PROTECTED] wrote: From: Quincey Morris [EMAIL PROTECTED] Subject: Re: tearing my hair, ok here is a compilable example. To: cocoa-dev@lists.apple.com Date: Wednesday, October 15, 2008, 10:54 PM On Oct 15, 2008, at 22:13, Chris Idou wrote: @class Class1; @interface Class2 : NSObject { IBOutlet Class1 *class1; } @property(readonly) Class1 *class1; -(BOOL)myMethod; @end #import Class2.h #import Class1.h @implementation Class2 @synthesize class1; ... - (void)awakeFromNib { [self addObserver:self forKeyPath:@myMethod options:NSKeyValueObservingOptionNew context: [Class2 class]]; } + (NSSet *)keyPathsForValuesAffectingMyMethod { NSLog(@keyPathsForValuesAffectingMyMethod); return [NSSet setWithObject:@class1.canLink]; } I think your problem is that Class2 isn't properly KVO compliant for the key class1. Consider what happens when your nib is loaded. At some point, the nib loader needs to set class1 to its correct value. Since the property is readonly and synthesized, there's no setter method, so the instance variable is changed directly. (I'm going from memory here, but I believe that's what documented to happen.) That presumably fails to trigger any KVO notifications, and your keyPathsForValuesAffectingMyMethod is not consulted. Try this: ... @interface Class2 () @property(readwrite) Class1 *class1; @end @implementation Class2 @synthesize class1; If my theory is correct, that should cause the outlet to be set via a KVC-compliant setter, and the keypath dependency should start working. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/idou747%40yahoo.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
NSComboBox select change
Hi When the combobox change the selection,I want to do something. How to do this? I didn't see any callback function. Or set the NSControl? *** The opinions and views expressed in this e-mail are solely those of the author and do not necessarily represent those of Qisda Corporation and its affiliates. Qisda Corporation is not responsible for any liability or damaged caused by viruses transmitted with this e-mail or its attachments. If this e-mail is not originally intended for you, or received by you in error, do not disclose its content to anyone and delete it immediately. This e-mail may contain information that is private, legally privileged, confidential or exempt from disclosure, and intended for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. Thank you. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Objective-C parameter mutation
On Wed, Oct 15, 2008 at 10:07 PM, Graham Cox [EMAIL PROTECTED] wrote: Others have addressed your current problem, but a note about the problem of passing 0.001: A float may not be able to exactly represent 0.001, but a value somewhat close to it. Spot-on! Goldberg's classic paper on the subject is a must-read for anyone working with floats: http://docs.sun.com/source/806-3568/ncg_goldberg.html sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: tearing my hair, ok here is a compilable example.
It has something to do with Class1 being a subclass of NSObjectController. This code works for me with the same IB connections (sorry, had to reformat; it's my compulsion): #import Cocoa/Cocoa.h @interface Class1 : NSObject { BOOL canLink; } - (BOOL) canLink; - (IBAction) change:(id)v; @end #import Class1.h @implementation Class1 - (BOOL) canLink { NSLog( @%s %d nc:%p, _cmd, canLink, self ); return canLink; } - (IBAction) change:(id)v { [self willChangeValueForKey:@canLink]; canLink = !canLink; [self didChangeValueForKey:@canLink]; NSLog( @%s %d, _cmd, canLink ); } - (void) setCanLink:(BOOL)aValue { canLink = aValue; } @end #import Cocoa/Cocoa.h @class Class1; @interface Class2 : NSObject { IBOutlet Class1 *class1; } - (BOOL) myMethod; @end #import Class2.h #import Class1.h @implementation Class2 + (NSSet*) keyPathsForValuesAffectingMyMethod { NSLog( @%s, _cmd ); return [NSSet setWithObject:@class1.canLink]; } #pragma mark - - (void) awakeFromNib { NSLog( @%s class1:%p, _cmd, class1 ); [self addObserver:self forKeyPath:@myMethod options:NSKeyValueObservingOptionNew context:[Class2 class]]; } - (void) observeValueForKeyPath:(NSString*)keyPath ofObject:(id)object change:(NSDictionary*)change context:(void *)context { NSLog( @%s %@, _cmd, keyPath ); if (context == [Class2 class]) { if ([keyPath isEqualToString:@myMethod]) { NSLog( @newvalue - myMethod:%d, [self myMethod] ); } } else { [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; } } - (BOOL) myMethod { return [class1 canLink]; } @end On Thu, Oct 16, 2008 at 1:18 AM, Chris Idou [EMAIL PROTECTED] wrote: That thought had occured to me, but making it readwrite doesn't seem to help. Cocoa NIB loading doesn't seem to call accessors, it seems to access them more directly. I even tried this: -(Class1 *)class1 { return class1; } -(void)setClass1:(Class1 *)v { NSLog(@setClass1: %@, v); [self willChangeValueForKey:@class1]; class1 = v; [self didChangeValueForKey:@class1]; } But they don't get called. I even tried adding to awakeFromNIB: id old = [self class1]; [self setClass1:nil]; [self setClass1:old]; To try and force the issue, but to no avail. Someone has observed that my code works when called from main() and bypassing IB. But it still doesn't work when loaded from a NIB! --- On Wed, 10/15/08, Quincey Morris [EMAIL PROTECTED] wrote: From: Quincey Morris [EMAIL PROTECTED] Subject: Re: tearing my hair, ok here is a compilable example. To: cocoa-dev@lists.apple.com Date: Wednesday, October 15, 2008, 10:54 PM On Oct 15, 2008, at 22:13, Chris Idou wrote: @class Class1; @interface Class2 : NSObject { IBOutlet Class1 *class1; } @property(readonly) Class1 *class1; -(BOOL)myMethod; @end #import Class2.h #import Class1.h @implementation Class2 @synthesize class1; ... - (void)awakeFromNib { [self addObserver:self forKeyPath:@myMethod options:NSKeyValueObservingOptionNew context: [Class2 class]]; } + (NSSet *)keyPathsForValuesAffectingMyMethod { NSLog(@keyPathsForValuesAffectingMyMethod); return [NSSet setWithObject:@class1.canLink]; } I think your problem is that Class2 isn't properly KVO compliant for the key class1. Consider what happens when your nib is loaded. At some point, the nib loader needs to set class1 to its correct value. Since the property is readonly and synthesized, there's no setter method, so the instance variable is changed directly. (I'm going from memory here, but I believe that's what documented to happen.) That presumably fails to trigger any KVO notifications, and your keyPathsForValuesAffectingMyMethod is not consulted. Try this: ... @interface Class2 () @property(readwrite) Class1 *class1; @end @implementation Class2 @synthesize class1; If my theory is correct, that should cause the outlet to be set via a KVC-compliant setter, and the keypath dependency should start working. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/idou747%40yahoo.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at
Re: tearing my hair, ok here is a compilable example.
On Thu, Oct 16, 2008 at 2:03 AM, Stephen J. Butler [EMAIL PROTECTED] wrote: - (void) setCanLink:(BOOL)aValue { canLink = aValue; } Opps. You can remove that. Still works. I'm assuming NSObjectController overrides some of the KVC/KVO methods for its own purposes, and it breaks observing subclass properties. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
AW: Dial with Bluetooth
Could you maybe provide me some sample code for this. I'm really interested in using Bluetooth, it's still a 'research Project' for me. I have just getting started to understand Bluetooth. Thanks a lot Thomas - Ursprüngliche Mail Von: Nick Zitzmann [EMAIL PROTECTED] An: Thomas Bartelmess [EMAIL PROTECTED] CC: cocoa-dev@lists.apple.com Gesendet: Donnerstag, den 16. Oktober 2008, 08:15:29 Uhr Betreff: Re: Dial with Bluetooth On Oct 15, 2008, at 4:20 PM, Thomas Bartelmess wrote: I would like to know if anybody has some expirience with the IOBluetooth Classes. Can you tell me how hard it is to Dial a number on a Phone with Bluetooth. I'm new to Bluetooth (I don't know very much about it) so please don't be too rude. It isn't that hard, but it only works with the small handful of phones that support RFCOMM. Apple most certainly does not support RFCOMM on the **; I've only seen some Nokia and Sony Ericsson phones support it. Nick Zitzmann http://www.chronosnet.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Project path
Hi all, I'm working on a iPhone code generator and I encounter some problems especially with the xcodeproj file.Presently, I did not find a way to generate the resource part of the project.pbxproj file. Do you know where I could find some hints to do this ? Best regards, Quentin ARNAULT ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: custom nstextview
Hi Chris, I don't know exactly how it's done, but Smultron does that and it's open source. Maybe you can find what you are looking for digging in its code. Bye. On Mon, Oct 13, 2008 at 4:41 AM, chris struhar [EMAIL PROTECTED] wrote: I'm trying to modify the default behavior of an NSTextView to behave more like that of programming IDEs (xcode or textmate) where if you tab over and then press return, it automatically tabs you to the same indentation level on the new line. Could someone point me in the right direction? My guess is that I need to add some ruler to the view but I don't know where to go beyond that. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/mat.mailings%40gmail.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
NSTextView user input bug in 10.4
Hi all, I'm developing an app with Xcode 3.1 on Leopard. I have a bunch of NSTextViews embedded in NSScrollViews (we'll call these input areas), which are embedded in NSScrollViews, which are in NSTabViews. The content of the NSTextViews is bound to CoreData values. The app compiles and runs fine under 10.5.x, but under 10.4 the NSTextViews are broken: 1) Once the user starts typing in an Input Area, the Input Area never resigns keyView status to another Input Area in their common NSScrollView super view. 2) When the user types, the behavior is odd... for example, if the user types asdf, the Input Area will type a, then as, then asd, then asdf, so the complete line of text is aasasdasdf. The text is never committed to the CoreData record. I've subclassed the NSScrollView and NSTextView that make up the Input Area, but they are working fine in other areas of the application where they're not inside NSScrollView and NSTabView super views. I have 10.4 SDK selected as a compile option, and 10.4 compatibility selected in Interface Builder. TIA, - Mike --- Michael A. LaMorte In matters of style, swim with the current; In matters of principle, stand like a rock -Thomas Jefferson ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Length of a filename
How can I check the appositeness of a filename? This will not work: if ( [potentialPath length] 255 ) ... error: filename too long because HFS+ uses some decomposed form. This might work: if ( [[ NSString stringWithUTF8String: [potentialPath fileSystemRepresentation] ] length] 255 ) ... but looks kind of convoluted and inefficient. There are two methods in NSString: decomposedStringWithCanonicalMapping decomposedStringWithCompatibilityMapping but the documentation does not say which (if any) should be used to convert a potentialPath into a form used in HFS+. Kind regards, Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: NSTextfield in tableColumn changing color slow
Hi Steven, On Oct 16, 2008, at 2:03 AM, Steven Hamilton wrote: Hi Folks, I have a core data bound tableColumn that displays a currency balance. My NSManagedObject is a custom class that calculates the balance from a @sum of related transactions and returns the balance. The binding then displays this balance in the tableColumn. So far so good. This works fast. I've implemented the delegate method below to query the NSTextfield value and change the color to red if it's less than 0. However, when I implement this and scroll the table its slow and jerky. Clearly I'm going about this the wrong way. How is it best to change the color based on the value of the cell? - (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row; This is a good way to do it. Do you have a sample to show the slow down? And/or what does your code do in this method? -corbin ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Length of a filename
Le 16 oct. 08 à 11:31, Gerriet M. Denkmann a écrit : How can I check the appositeness of a filename? This will not work: if ( [potentialPath length] 255 ) ... error: filename too long because HFS+ uses some decomposed form. This might work: if ( [[ NSString stringWithUTF8String: [potentialPath fileSystemRepresentation] ] length] 255 ) ... but looks kind of convoluted and inefficient. There are two methods in NSString: decomposedStringWithCanonicalMapping decomposedStringWithCompatibilityMapping but the documentation does not say which (if any) should be used to convert a potentialPath into a form used in HFS+. Kind regards, Gerriet. HFS use a special Unicode implementation with some bug or limitation that remains for compatibility. That's why you should never try to I think you can use this undocumented but public function to try to convert your string and check the result code: OSStatus FSGetHFSUniStrFromString(CFStringRef str, HFSUniStr255 *uniStr); As NSString and CFString are toolfree bridged, just pass your string as first argument. But it's probably not a good idea to check to path name youself except if you are sure your user target an HFS+ volume. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Length of a filename
On Thu, Oct 16, 2008 at 5:31 AM, Gerriet M. Denkmann [EMAIL PROTECTED] wrote: How can I check the appositeness of a filename? This will not work: if ( [potentialPath length] 255 ) ... error: filename too long because HFS+ uses some decomposed form. This might work: if ( [[ NSString stringWithUTF8String: [potentialPath fileSystemRepresentation] ] length] 255 ) ... but looks kind of convoluted and inefficient. There are two methods in NSString: decomposedStringWithCanonicalMapping decomposedStringWithCompatibilityMapping but the documentation does not say which (if any) should be used to convert a potentialPath into a form used in HFS+. It is impossible to preflight a filename in the general case, because HFS+ is not the only filesystem in the universe. You could be writing to FAT32 or ZFS or HFS or something else, all of which have different rules for what's allowed and what's not. Even worse, you could be writing to a network filesystem that is backed by anything, and you can't even find out what that is. If you need to know whether a filename is legal, the only sure way is to try it and see if it works. If you need to preflight before you do some real work, the only way I've found is to write out a dummy file first and see if that succeeds. Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
NSTextfield in tableColumn changing color slow
Hi Folks, I have a core data bound tableColumn that displays a currency balance. My NSManagedObject is a custom class that calculates the balance from a @sum of related transactions and returns the balance. The binding then displays this balance in the tableColumn. So far so good. This works fast. I've implemented the delegate method below to query the NSTextfield value and change the color to red if it's less than 0. However, when I implement this and scroll the table its slow and jerky. Clearly I'm going about this the wrong way. How is it best to change the color based on the value of the cell? - (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row; ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: AW: Dial with Bluetooth
On Oct 16, 2008, at 12:22 AM, Thomas Bartelmess wrote: thanks for you answer. But there is Software that can dial on the **. Is this RFCOMM too or is there an other way to trigger an call with Bluetooth? If there is, I'd like to know what method it's using. Normally you do phone dialing by connecting to a Bluetooth serial port (RFCOMM) and then sending an ATDT command, but I don't think the ** supports that. Nick Zitzmann http://www.chronosnet.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: table bindings, value transformer per row?
On 10/15/08 6:35 PM, [EMAIL PROTECTED] said: i've got a bound table view. is it possible to use a different value transformer based on which row of the table is being displayed/edited? and if so, how? I don't think so. You can use a different formatter in different columns, but rows are expected to show the same data as other rows. -- Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: how to use the loginItem in OSX 10.3?
Why don't you make it a regular Cocoa app that doesn't open any windows and doesn't have a dock icon? --- On Thu, 10/16/08, XiaoGang Li [EMAIL PROTECTED] wrote: From: XiaoGang Li [EMAIL PROTECTED] Subject: how to use the loginItem in OSX 10.3? To: cocoa-dev@lists.apple.com Date: Thursday, October 16, 2008, 2:27 AM hi, list, I have a task that a cmd-line utility should be launched when user login window on OSX 10.3.9. this cmd-line utility bind to a socket port and listen message from low-level server. I means that the cmd-utility will not quit until the user logout. acutally, I know I should use launchd method to implement this feature in 10.4 or later . but in OSX 10.3.9, I have encountered some problems. At first, I planned to use login Items, add item in the loginwindow.plist in the user's directory. I can add the cmd-line utility to the login item list of current user when the user login window. but one terminal (console) popup every time. this is a big problem, so unsatisfied for me, I need it to run as a daemon. Second, i use the unrecommended way : add a plist file to the path: /etc/mach_init_per_user.d directory. but it seems not work. what should i do anything else? I am sorry that if i put this mail in a wrong list. Any comments will be appreciated. Thanks. Andrew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/idou747%40yahoo.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Project path
Ho, sorry, it seems that I red too quickly the Apple piece of news concerning NDA... So thank you for the help, i'll go check the xcode-users archives. Best regards, Quentin ARNAULT On Thu, Oct 16, 2008 at 12:59 PM, I. Savant [EMAIL PROTECTED]wrote: On Oct 16, 2008, at 5:24 AM, Quentin Arnault wrote: I'm working on a iPhone code generator and I encounter some problems especially with the xcodeproj file.Presently, I did not find a way to generate the resource part of the project.pbxproj file. Do you know where I could find some hints to do this ? 1 - We're still not allowed to discuss iPhone development on this list until the new agreement is in place. 2 - This appears to have nothing directly to do with iPhone development. :-) 3 - This has nothing to do with Cocoa at all. 4 - The best place to post questions about Xcode project templates is the xcode-users list. 5 - You might even be able to find project file structure questions already answered in the xcode-users archives. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
how to use the loginItem in OSX 10.3?
hi, list, I have a task that a cmd-line utility should be launched when user login window on OSX 10.3.9. this cmd-line utility bind to a socket port and listen message from low-level server. I means that the cmd-utility will not quit until the user logout. acutally, I know I should use launchd method to implement this feature in 10.4 or later . but in OSX 10.3.9, I have encountered some problems. At first, I planned to use login Items, add item in the loginwindow.plist in the user's directory. I can add the cmd-line utility to the login item list of current user when the user login window. but one terminal (console) popup every time. this is a big problem, so unsatisfied for me, I need it to run as a daemon. Second, i use the unrecommended way : add a plist file to the path: /etc/mach_init_per_user.d directory. but it seems not work. what should i do anything else? I am sorry that if i put this mail in a wrong list. Any comments will be appreciated. Thanks. Andrew ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: tearing my hair, Do we agree it’s a bu g?
Ok, I see it is caused by NSObjectController. Is everyone agreed it is a bug? It's still quite odd that it only occurs if loaded from a NIB, but works ok if manually instantiated. --- On Thu, 10/16/08, Chris Suter [EMAIL PROTECTED] wrote: From: Chris Suter [EMAIL PROTECTED] Subject: Re: tearing my hair, ok here is a compilable example. To: [EMAIL PROTECTED] Cc: cocoa-dev@lists.apple.com, Stephen J. Butler [EMAIL PROTECTED] Date: Thursday, October 16, 2008, 2:15 AM On Thu, Oct 16, 2008 at 7:54 PM, Chris Idou [EMAIL PROTECTED] wrote: I disagree. I changed both to be NSObjects, and nothing changed. I think it is to do with it being a subclass of NSObjectController. Changing it to an NSObject makes it work for me. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
How to get icon of special folder (like /Applications or /Library)?
Hello, On Mac OS X many special folders have their own personal icons. For example /Applications have capital letter A on generic folder icon. I have some path which leads to some special folder. How can I determine what icon this folder have? Path is stored in NSString. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: NSComboBox select change
On Oct 16, 2008, at 2:07 AM, Joseph Yu wrote: When the combobox change the selection,I want to do something. How to do this? I didn't see any callback function. Have you searched/read the documentation? This is considered Cocoa Fundamentals: http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CommunicatingWithObjects/chapter_6_section_5.html -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
iPhone Development Mailing List
It's been two weeks and Apple moves with its usual slowness and secrecy. It's probably going to take a while longer. And then some more. And then we wait a couple of weeks for the official mailing list. In the meantime, outside of the Apple domain, everybody is happily openly discussing iPhone development and even books are being released with the consent of Apple. http://pragdave.blogs.pragprog.com/pragdave/2008/10/the-iphone-book.html I admit that I am an impatient man and I have a bunch of Cocoa-Touch and iPhone development things that I would like to discuss within a larger group. Rather last week then next month. So, maybe it is time we take action and simply setup a google group or mailing list. I'll be more than happy to host and manage the latter. I also see there is a http://groups.google.com/group/iphone-dev but there are no subscribers yet. Maybe the iPhone developer among us can simply move there. It would be a good statement. And a lot of fun to FINALLY start discussing this openly and to build up some developer relations. Anyone up for that? Let's do it! S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: tearing my hair, ok here is a compilable example.
On Thu, Oct 16, 2008 at 7:54 PM, Chris Idou [EMAIL PROTECTED] wrote: I disagree. I changed both to be NSObjects, and nothing changed. I think it is to do with it being a subclass of NSObjectController. Changing it to an NSObject makes it work for me. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Project path
On Oct 16, 2008, at 5:24 AM, Quentin Arnault wrote: I'm working on a iPhone code generator and I encounter some problems especially with the xcodeproj file.Presently, I did not find a way to generate the resource part of the project.pbxproj file. Do you know where I could find some hints to do this ? 1 - We're still not allowed to discuss iPhone development on this list until the new agreement is in place. 2 - This appears to have nothing directly to do with iPhone development. :-) 3 - This has nothing to do with Cocoa at all. 4 - The best place to post questions about Xcode project templates is the xcode-users list. 5 - You might even be able to find project file structure questions already answered in the xcode-users archives. -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
How can I launch Preview.app from my application for collection of images
Hello, I have set of images, how can i open Preview.app from my Cocoa application to display them all? BR, Alexander. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: How can I launch Preview.app from my application for collection of images
On 16 Oct 2008, at 10:48 AM, Alexander Shmelev wrote: I have set of images, how can i open Preview.app from my Cocoa application to display them all? See -[NSWorkspace openFile:withApplication:]. If your images are in memory only, you'll have to save them in temporary files. I don't know of a way to make Preview display an image that isn't in a file. Consider -[NSWorkspace openFile:], which opens the file in the user's _preferred_ application for viewing the file. The user may have a good reason to prefer something other than Preview. — F -- Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- http://x3u.manoverboard.org/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: tearing my hair, ok here is a compilable example.
On Thu, Oct 16, 2008 at 3:59 AM, Chris Idou [EMAIL PROTECTED] wrote: I'm attaching the project with two NSObjects. Still doesn't work for me. You forgot to connect the class1 outlet to your Class1 instance in IB. Once I did that, it worked. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: how to use the loginItem in OSX 10.3?
On Oct 16, 2008, at 2:27 AM, XiaoGang Li wrote: hi, list, I have a task that a cmd-line utility should be launched when user login window on OSX 10.3.9. this cmd-line utility bind to a socket port and listen message from low-level server. I means that the cmd-utility will not quit until the user logout. acutally, I know I should use launchd method to implement this feature in 10.4 or later . but in OSX 10.3.9, I have encountered some problems. At first, I planned to use login Items, add item in the loginwindow.plist in the user's directory. I can add the cmd-line utility to the login item list of current user when the user login window. but one terminal (console) popup every time. this is a big problem, so unsatisfied for me, I need it to run as a daemon. Second, i use the unrecommended way : add a plist file to the path: /etc/mach_init_per_user.d directory. but it seems not work. what should i do anything else? I am sorry that if i put this mail in a wrong list. Any comments will be appreciated. Thanks. If I'm understanding you correctly, you want to launch a daemon at login time on 10.3.9? First, check out TN2083 Daemons and Agents http://developer.apple.com/technotes/tn2005/tn2083.html If you have further questions, I would recommend either asking on Darwin-Dev or submitting a tech support incident to [EMAIL PROTECTED] -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Resize the NSCollectionViewItem's view
Hi, I have to programmatically resize the view of an NSCollectionViewItem, (which is the record's view). I tried several ways, unsuccessfully. in the awakeFromNib of the NSViewController subclass -- NSCollectionView*collView = [[self oCollectionVI] collectionView]; [collView setMaxItemSize:NSMakeSize(480, 200)]; [collView setMinItemSize:NSMakeSize(480, 200)]; resizing directly the view -- recView = [[viewController oCollectionVI] view]; newRecFrame = [recView frame]; recFrame.size.height = 100; [recView setFrame:recFrame]; [[viewContr oCollectionVI] setView:recView]; // trying to force reset No luck with both. It seems that the size remains the same as defined in the nib file. Any idea? Thanks LL ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: iPhone Development Mailing List
Quick update to my own message. I found two places that seems to be good: The first one is a mailing list hosted by the friendly folks from NetNewsWire: http://www.ranchero.com/?comments=1postid=1997 http://lists.ranchero.com/listinfo.cgi/iphonedev-ranchero.com And the second is a forum, not my preferred way, but there is a lot of good iPhone development discussion going on. Interestingly this is hosted at ... Apple! http://discussions.apple.com/category.jspa?categoryID=164 S. On Thu, Oct 16, 2008 at 11:14 AM, Stefan Arentz [EMAIL PROTECTED] wrote: It's been two weeks and Apple moves with its usual slowness and secrecy. It's probably going to take a while longer. And then some more. And then we wait a couple of weeks for the official mailing list. In the meantime, outside of the Apple domain, everybody is happily openly discussing iPhone development and even books are being released with the consent of Apple. http://pragdave.blogs.pragprog.com/pragdave/2008/10/the-iphone-book.html I admit that I am an impatient man and I have a bunch of Cocoa-Touch and iPhone development things that I would like to discuss within a larger group. Rather last week then next month. So, maybe it is time we take action and simply setup a google group or mailing list. I'll be more than happy to host and manage the latter. I also see there is a http://groups.google.com/group/iphone-dev but there are no subscribers yet. Maybe the iPhone developer among us can simply move there. It would be a good statement. And a lot of fun to FINALLY start discussing this openly and to build up some developer relations. Anyone up for that? Let's do it! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: How to get icon of special folder (like /Applications or /Library)?
[[NSWorkspace sharedWorkspace] iconForFile:path] On 16 Oct 2008, at 16:08, Alexander Shmelev wrote: Hello, On Mac OS X many special folders have their own personal icons. For example /Applications have capital letter A on generic folder icon. I have some path which leads to some special folder. How can I determine what icon this folder have? Path is stored in NSString. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/cocoadev%40mikeabdullah.net This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Faceless background app that uses NSAppleScript
I need to write an app whose purpose is to drive other apps, using NSAppleScript. No UI is needed. But I'm unclear on what kind of environment needs to be set up in order for NSAppleScript to work. I suspect it needs at least NSRunLoop event processing; I wonder if it might also need an NSApplication around. Past use of NSAppleScript has revealed that it's somewhat quirky about event handling, in that what looks like a blocking synchronous call (executeAndReturnError), seems to allow the event loop to keep processing while it's waiting for a response. And if it's too much of a pain in the neck, I'll just live with what I already know how to do easily: a GUI that consists of a status window and a Quit menu item ;-) -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: how to complete c/s app
What do you wish to do that SAMBA does not? -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Faceless background app that uses NSAppleScript
On Thu, Oct 16, 2008 at 12:15 PM, Scott Ribe [EMAIL PROTECTED] wrote: And if it's too much of a pain in the neck, I'll just live with what I already know how to do easily: a GUI that consists of a status window and a Quit menu item ;-) Look into LSUIElement and LSBackgroundOnly. One of the two should do what you want. http://cocoadev.com/index.pl?LSUIElement ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Faceless background app that uses NSAppleScript
On Oct 16, 2008, at 13:15 , Scott Ribe wrote: I need to write an app whose purpose is to drive other apps, using NSAppleScript. No UI is needed. But I'm unclear on what kind of environment needs to be set up in order for NSAppleScript to work. I suspect it needs at least NSRunLoop event processing; I wonder if it might also need an NSApplication around. Past use of NSAppleScript has revealed that it's somewhat quirky about event handling, in that what looks like a blocking synchronous call (executeAndReturnError), seems to allow the event loop to keep processing while it's waiting for a response. And if it's too much of a pain in the neck, I'll just live with what I already know how to do easily: a GUI that consists of a status window and a Quit menu item ;-) Add the LSUIElement key to the Info.plist and it will launch without a dock icon or a menu. You can then safely call [NSApplication sharedApplication] from within your application to connect to the window server (so you can use AppKit and other frameworks). Then just do [NSApp run] to start the run loop and the event loop and treat it like normal... no need to create a window (although you could load one if you ever had a need to). HTH, Jason smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Faceless background app that uses NSAppleScript
Add the LSUIElement key to the Info.plist and it will launch without a dock icon or a menu. Aha, it didn't click with me that the application could be a complete normal Cocoa app and that specifying faceless in the plist would simply hide it. I've done normal Cocoa apps. I've done UNIXy server daemons (with some CF stuff). I was imagining having to combine the two in some way requiring obscure initialization sequences. Thanks. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Faceless background app that uses NSAppleScript
Yeah, I have a user agent that works like this... Mostly it's controlled by launchd but sometimes it presents a window to the user so it needs AppKit services... Just remember to call [NSApplication sharedApplication] before doing anything else :) --Original Message-- From: Scott Ribe To: Jason Coco Cc: Cocoa-dev Sent: Oct 16, 2008 13:28 Subject: Re: Faceless background app that uses NSAppleScript Add the LSUIElement key to the Info.plist and it will launch without a dock icon or a menu. Aha, it didn't click with me that the application could be a complete normal Cocoa app and that specifying faceless in the plist would simply hide it. I've done normal Cocoa apps. I've done UNIXy server daemons (with some CF stuff). I was imagining having to combine the two in some way requiring obscure initialization sequences. Thanks. -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice Sent via BlackBerry from T-Mobile___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Format Specifier Problem
Hi, I am trying to create a string from a float. But i want only 3 digits after the decimal place. Here's my code. float a = 2.036; NSString *str = [NSString stringWithFormat:@%3f,a]; But this does not seem to work. Everytime it creates the string it is 2.036000 instead of 2.036 What should be the format specifier to do this ? Thank You ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Format Specifier Problem
Hello, I am trying to create a string from a float. But i want only 3 digits after the decimal place. Here's my code. float a = 2.036; NSString *str = [NSString stringWithFormat:@%3f,a]; But this does not seem to work. Everytime it creates the string it is 2.036000 instead of 2.036 What should be the format specifier to do this ? I think you have to use %1.3f as specifier. Greetings Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
[Moderator]Re: iPhone Development Mailing List
The NDA is still in effect, and will remain in effect until you receive the new program agreements. You can't talk about it here, and legally you can't talk about it elsewhere. When new agreements are sent to developers, new list guidelines will be sent as well. Please, Do not use this list to point to resources that are allowing NDA violations. The support forums have been poked yet again. It's been two weeks and Apple moves with its usual slowness and secrecy. It's probably going to take a while longer. And then some more. And then we wait a couple of weeks for the official mailing list. In the meantime, outside of the Apple domain, everybody is happily openly discussing iPhone development and even books are being released with the consent of Apple. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: NSTokenField: Tokenizing on Right Arrow key
Since the key events are currently handled directly by the text view short-circuiting the normal key binding management (and, thus, - control:textView:doCommandBySelector: delegation), there is no easy way to accomplish this right now. The easiest thing you can do is to write a bug 8-). Aki On 2008/10/14, at 1:14, Dirk Musfeldt wrote: Hi, I'm using NSTokenField on 10.5. I want the field to display the token once the user presses the right arrow key to get at the end of the selection. this is the way it works in Mail's address field. Unfortunately this does not work as expected. It works if the user enters one of the tokenizing characters or presses the return key but not with the right arrow key. Anybody has a suggestion how to get that working? Regards Dirk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/aki%40apple.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Unable to parse special characters using NSXMLParser
Hi All, I'm having problems with NSXMLParser while parsing XML File which contain some special characters or Non-UTF8 Characters, My application will get the XML Document data from my server. I'm creating the NSXMLParser with NSData received from Server. Some times it could be possible that received NSData may contain special characters such as Ä? , then parser stops itself and returns an error saying Invalid Character Found. Here is the Exact Error am receiving --- *NSXMLParserErrorDomain error 9* Please provide your valuable suggestions to solve the problem. Thanks in Advance. JanakiRam ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Get service requester application name
Hello everyone! I'm writing a service which should get selected text and requester name... Which selected text everything is ok. But with service requester app name... Is such possibility exists or I'm a dreamer ) Thanks in advance. Hope my question is clear ) -- With regards, Vera Tkachenko [ICQ#230923300] [web http://vera.org.ua] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
NSPredicateEditorRowTemplate and CoreData
Hello Cocoa Dev List, I'm loving NSPredicateEditor and what it lets you do. I'm wondering about the best way to manage what I want to do: I want a Pop-Up Pop-Up Pop-Up template row, where the last view is populated by every item of a particular CoreData Entity. The entity has one attribute, 'name', that should be the display item, but the objects themselves (or at least their URL ID) should be part of the predicate, so that the predicate can follow the object should the name attribute change. I'm expecting to parse the predicate tree when I want to use it to replace the object instance with its name attribute. That part is relatively easy to set up in a NSPredicateEditorRowTemplate subclass. I'm using an IBOutlet link to an NSArrayController which has all the items to populate the list with. Overriding templateViews to populate the last view with the appropriate values. This seems a little kludgy, but works well enough. If there's a better solution, I'd love to hear it! What's troubling me is the edge case where there are no objects of the particular entity in the database. I think the best option would be to prevent the associated Row Template from being selectable from the left hand side Pop-Up, but I can't seem to find any way to do that. There is a potential problem I can see with removing the item from the left hand side Pop-Up anyway, namely, what happens if a previously saved predicate is given to the predicate editor. Is there an elegant solution to this? I appreciate any ideas, Arved von Brasch ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
newbie: send message to class not instance
Hi, let's say I have a class MyClass @interface MyClass : NSObject{ - (void) myInstanceMethod; + (void) myClassMethod; } with an instance myInstance MyClass *myInstance = [[MyClass alloc] init]; . I could then call myInstanceMethod like [myInstance myInstanceMethod]; . I could call the static (or, like the Java-people say, class-) method like [MyClass myClassMethod]; . I couldn't, however, call the static method via the Instance: [myInstance myClassMethod]; wouldn't work. That's different in the languages I know, e.g. Java . So far the preliminaries. Here comes the problem: I could send a message to the instance, calling the instance-method with objc_msgSend or one of the related commands like performSelector: objc_msgSend(myInstance, @selector(myInstanceMethod)); But I can't send a message to the instance, calling the static method with objc_msgSend : objc_msgSend(myInstance, @selector(myClassMethod)); , because that's the same as [myInstance myClassMethod]; which doesn't work as said above. But I can't send a message to the class either, calling the static method with objc_msgSend: objc_msgSend(MyClass , @selector(myClassMethod)); because MyClass is not a term for an Object, so I get a syntax error. Thus there seems to be no way to call a static method by sending a message via objc_msgSend . Is that so? Any help? Thanks in advance Horst ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: newbie: send message to class not instance
On Oct 16, 2008, at 9:38 AM, Horst Jäger wrote: . I could call the static (or, like the Java-people say, class-) method like Java borrowed from Objective-C on this and many other features. Java was actually derived from Obj-C. It is a class method. Not a static method. Class methods are inherited and can be overridden. As to your other question, do this: [[myInstance class] myClassMethod]; Done. b.bum smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Unable to parse special characters using NSXMLParser
On Oct 16, 2008, at 11:23 AM, JanakiRam wrote: I'm having problems with NSXMLParser while parsing XML File which contain some special characters or Non-UTF8 Characters, Is the server setting the appropriate character encoding in the XML document? If it is not, then the document is not well-formed, and NSXMLParser is correctly rejecting it. You can see what encoding is being used by examining the first line; it will look something like ?xml version='1.0' encoding='the-doc-encoding' ? -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA PGP.sig Description: This is a digitally signed message part ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Get service requester application name
On Oct 16, 2008, at 12:32 AM, Вера wrote: Hello everyone! I'm writing a service which should get selected text and requester name... Which selected text everything is ok. But with service requester app name... Is such possibility exists or I'm a dreamer ) Thanks in advance. Hope my question is clear ) You want to find which application requested the Service? There's not a perfect way to do this today, but what some apps do is to check which app is frontmost (via GetFrontProcess()) at the time the Service request is received. -Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Unable to parse special characters using NSXMLParser
Dave, Thanks for the response. In this case we are getting the following as the first line of the document. ?xml version=1.0? JanakiRam On Fri, Oct 17, 2008 at 12:11 AM, Dave Carrigan [EMAIL PROTECTED] wrote: On Oct 16, 2008, at 11:23 AM, JanakiRam wrote: I'm having problems with NSXMLParser while parsing XML File which contain some special characters or Non-UTF8 Characters, Is the server setting the appropriate character encoding in the XML document? If it is not, then the document is not well-formed, and NSXMLParser is correctly rejecting it. You can see what encoding is being used by examining the first line; it will look something like ?xml version='1.0' encoding='the-doc-encoding' ? -- Dave Carrigan [EMAIL PROTECTED] Seattle, WA, USA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Unable to parse special characters using NSXMLParser
On 16 Oct 2008, at 19:50:01, JanakiRam wrote: Dave, Thanks for the response. In this case we are getting the following as the first line of the document. ?xml version=1.0? JanakiRam Check the encoding of the file itself. http://www.w3schools.com/XML/xml_encoding.asp ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: NSPredicateEditorRowTemplate and CoreData
On Oct 16, 2008, at 3:56 AM, Arved von Brasch wrote: Hello Cocoa Dev List, I'm loving NSPredicateEditor and what it lets you do. I'm wondering about the best way to manage what I want to do: I want a Pop-Up Pop-Up Pop-Up template row, where the last view is populated by every item of a particular CoreData Entity. The entity has one attribute, 'name', that should be the display item, but the objects themselves (or at least their URL ID) should be part of the predicate, so that the predicate can follow the object should the name attribute change. I'm expecting to parse the predicate tree when I want to use it to replace the object instance with its name attribute. That part is relatively easy to set up in a NSPredicateEditorRowTemplate subclass. I'm using an IBOutlet link to an NSArrayController which has all the items to populate the list with. Overriding templateViews to populate the last view with the appropriate values. This seems a little kludgy, but works well enough. If there's a better solution, I'd love to hear it! That's a fine approach. You can also just create a new RowTemplate and set it on the NSPredicateEditor every time your list of items changes. What's troubling me is the edge case where there are no objects of the particular entity in the database. I think the best option would be to prevent the associated Row Template from being selectable from the left hand side Pop-Up, but I can't seem to find any way to do that. There's no way to, say, disable the item, but you can remove it entirely by just removing that RowTemplate from the predicate editor's array of row templates. There is a potential problem I can see with removing the item from the left hand side Pop-Up anyway, namely, what happens if a previously saved predicate is given to the predicate editor. Is there an elegant solution to this? What you can do here is have a fallback template, that is, another template capable of showing the predicate. If you load a predicate that references an item in the database that no longer exists, the fallback can display something generic instead. You would implement this by having multiple templates nonzero for matchForPredicate:, with the fallback returning the smaller value. You can also just preprocess the predicate to excise or replace predicates that no longer apply. If no template claims the ability to show a particular predicate, then the predicate editor will complain (but does not raise an exception in Leopard), and then ignore the the predicate. Hope this helps, -Peter ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: tearing my hair out: +(NSSet *)keyPathsForValuesAffectingValueForKey:
On Oct 15, 2008, at 9:12 PM, Chris Idou wrote: I'm now calling the super class as described, but it doesn't help. In the code you originally provided, an object was observing itself using KVO. Can you reproduce when a different object is the observer? Also, is canLink actually changing? You have told KVO that its value is affected by noteController.linkableSelection, but I think (under some circumstances) KVO actually checks if canLink has been changed as a result of noteController.linkableSelection changing before putting out a change notification for canLink. I don't recall if you actually showed us the getter for canLink. Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: How to get icon of special folder (like /Applications or /Library)?
On Oct 16, 2008, at 10:08 AM, Alexander Shmelev wrote: On Mac OS X many special folders have their own personal icons. For example /Applications have capital letter A on generic folder icon. I have some path which leads to some special folder. How can I determine what icon this folder have? Path is stored in NSString. In general, to get the icon for any item in the file system, you can use: [[NSWorkspace sharedWorkspace] iconForFile:pathToTheFile] Also, just in case, you should not hard-code /Applications or any other path to a special folder in your code. You should use NSSearchPathForDirectoriesInDomains or FSFindFolder to determine the path to a special folders at run time. Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Calling UNIX command from Cocoa
Ok., I am sure I have seen one but can't seem to find it. I need an Open Source class to call a command line program with a couple of arguments. Does any one know of any and where I can find one? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Calling UNIX command from Cocoa
On Oct 16, 2008, at 3:09 PM, development2 wrote: Ok., I am sure I have seen one but can't seem to find it. I need an Open Source class to call a command line program with a couple of arguments. Does any one know of any and where I can find one? Do you need open source to see the source, or just so it's available for you to use. I ask because such a class is built into Cocoa, although it's closed source: NSTask. I suppose, if you really need to see source code, there's probably a version of NSTask in GnuStep. Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Calling UNIX command from Cocoa
Calling a command line function can be handled with plain old C as well. Look at the exec() function set. frm Franklin Marmon [EMAIL PROTECTED] GTalk: [EMAIL PROTECTED] On Oct 16, 2008, at 2:14 PM, Ken Thomases wrote: On Oct 16, 2008, at 3:09 PM, development2 wrote: Ok., I am sure I have seen one but can't seem to find it. I need an Open Source class to call a command line program with a couple of arguments. Does any one know of any and where I can find one? Do you need open source to see the source, or just so it's available for you to use. I ask because such a class is built into Cocoa, although it's closed source: NSTask. I suppose, if you really need to see source code, there's probably a version of NSTask in GnuStep. Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/agathezol%40agasupport.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: -[NSMutableSet addObject:] Ambiguous Docs: -isEqual: vs. ==
adding duplicates based on -isEqual: ^is^ indeed the behavior that I want You might take a look at NSCountedSet, which doesn't add the object again but bumps the count. Keith ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Desired Tabbing order not working
Hi, There is a small problem i am having while using Interface Builder. I have multiple text fields on my window. I have specified my own sequence of nextKeyView, so that while tabbing through those text fields, it follows my desired order. I have made the required connections and it even shows them correctly in inspector window. But when i actually run the application, the order of nextKeyView is not the same as i had specified it. Please guide what can be wrong here. Or is there any special requirements for changing the nextKeyView order. Thanx ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Faceless background app that uses NSAppleScript
Scott Ribe wrote: I need to write an app whose purpose is to drive other apps, using NSAppleScript. No UI is needed. But I'm unclear on what kind of environment needs to be set up in order for NSAppleScript to work. I suspect it needs at least NSRunLoop event processing; I wonder if it might also need an NSApplication around. Installing Apple event handlers that receive incoming events from other processes requires an event loop, of course, but I'm not aware of any limitations in NSAppleScript or the AppleScript component that force you to create one for outgoing events. You certainly don't need an event loop to use AESend() or AESendMessage() unless you want to receive replies asynchronously. I've written scads of event loop-less Python/Ruby/ObjC code that uses both of these APIs synchronously. I've also written the occasional Python shell script to run AppleScripts via the Carbon OSA or Cocoa NSAppleScript APIs without problems. FWIW, I think the AppleScript component may require a Window Manager connection, but you're unlikely to be running it in an environment without WM access anyway (as scriptable desktop applications invariably require WM access as well). Past use of NSAppleScript has revealed that it's somewhat quirky about event handling, in that what looks like a blocking synchronous call (executeAndReturnError), seems to allow the event loop to keep processing while it's waiting for a response. I don't think so - AppleScript is normally used on the main thread on account of it being a PITA to use anywhere else, and anything running on your main thread will block your event loop until it returns. (There is an ancient and convoluted mechanism in AESend() from pre-OS X days that allows it to yield to other routines while waiting on a response, but let's not go there.) You could also try asking on the applescript-users or applescript- implementors mailing lists; someone like Chris Nebel (AppleScript engineer) could tell you for sure what AS's limitations are. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Length of a filename
On 16 Oct 2008, at 16:18, Jean-Daniel Dupas wrote: Le 16 oct. 08 à 11:31, Gerriet M. Denkmann a écrit : How can I check the appositeness of a filename? This will not work: if ( [potentialPath length] 255 ) ... error: filename too long because HFS+ uses some decomposed form. This might work: if ( [[ NSString stringWithUTF8String: [potentialPath fileSystemRepresentation] ] length] 255 ) ... but looks kind of convoluted and inefficient. There are two methods in NSString: decomposedStringWithCanonicalMapping decomposedStringWithCompatibilityMapping but the documentation does not say which (if any) should be used to convert a potentialPath into a form used in HFS+. OSStatus FSGetHFSUniStrFromString(CFStringRef str, HFSUniStr255 *uniStr); Looks promising, but does not work - it does not decompose the filename: NSString *f1 = [ NSString stringWithUTF8String: bête ]; HFSUniStr255 uniStr; FSGetHFSUniStrFromString( (CFStringRef)f1, uniStr); NSLog(@HFSUniStr length %hu, uniStr.length); // this is the original length, NOT the decomposed lenght Returns 4 - but the decomposed length is 5. But your advice (and of Michael Ash) not to preflight a filename is probably correct. Thanks for pointing this out. Kind regards, Gerriet. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Multiple persistent store coordinators gotchas?
Hi Melissa, Thanks for your help. A quick question on this stale data statement: On Oct 15, 2008, at 5:52 PM, Melissa J. Turner wrote: Stale data is unlikely to be a problem unless you're expecting to load it significantly before you actually need it, which would be the same if you were loading it into a separate context on the same coordinator. Just to clarify, stale data is only an issue for long-lived MOCs, not long-lived PSCs. For example, if we create 1 PSC for all the background threads to share for the lifetime of the app, but only create (or reset) MOCs just before report generation, there's minimal chance of stale data. These new/reset MOCs will always have fresh data? -Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Animating view transitions with Core Animation (problems with BasicCocoaAnimations sample)
Hi Jim, On Oct 13, 2008, at 3:51 PM, Jim Correia wrote: I have some old NSAnimation based code that I'd like to update to use Core Animation. Since BasicCocoaAnimations [1] does essentially what I want to do (at least for starters) I am using that as a starting point. [1] http://developer.apple.com/samplecode/BasicCocoaAnimations/index.html Problem #1: - Animation for -replaceSubview:with: appears to require a layer backed view tree. - Certain controls are not supported with layer backed view trees. - Others work poorly: - Focus rings are drawn incorrectly for editable NSTextField and friends [2] - Non-editable NSTextFields have incorrect anti-aliasing (without Scott Stevenson's hack) - NSTokenField has other issues (will be more specific and file a radar later) [2] http://skitch.com/jim.correia/2115/ Is there a direct workaround for any of these problems? See Ken's reply regarding the text antialiasing. Subpixel (LCD / font smoothing) antialiasing is on by default when views are asked to draw into their backing layers, but produces poor results if there isn't an opaque background behind the text drawn in that same layer (view). The options are to either switch off font smoothing (giving you regular, whole-pixel antialiasing) or give each TextField an opaque background color (and don't forget to also set drawsBackground to YES). The focus ring issue is known and we hope to find a better solution to it. The present focus ring model that allows for drawing outside a view's bounds is at odds with the sizing of view backing layers, which doesn't allow extra margin for focus rings. The result, for now, is thin focus rings when in layer-backed mode. Please do file a Radar for whatever you're seeing in NSTokenField. The workaround I attempted was to make the view tree in the window layer backed only during the animation. This leads to problems #2 and #3. Problem #2: If I set view.wantsLayer=YES on the content view of the window before doing the transitions, they are still not animated. If I force that subview tree to re-display before sending - replaceSubview:with: to the animator proxy, the transition is animated. While this works, forcing a view tree to display is usually the wrong way to go about things. Is it expected that I need to force display a view tree after view.wantsLayer=YES if I expect to start implicit animations on that run loop cycle? The -display is necessary in this case, since without it there won't be an opportunity for the views to be drawn into their backing layers in a transaction that precedes whatever animation you're then going to apply to those backing layers. If you want to be more efficient about it, a - displayIfNeededIgnoringOpacity sent to the root view of the layer- backed subtree (the view for which you're setting wantsLayer=YES) should suffice, and will avoid redisplaying other views higher up in the hierarchy. Problem #3: In order to arrange for my view tree to only be layer backed for the duration of the animation, I need to know when the animation finishes :-) The benefit of the implicit view animations is that much of the heavy lifting has already been done for me, so I'd like to take advantage of it if possible. The problem, though, is that since I'm not running the animations explicitly, I don't know when they are done. My current hack is to begin the implicit animations in a group, and use a perform delayed action to cleanup after the animation (based on the groups interval.) This feels like a hack though. Is there a better way? Using a perform-after-delay, an NSTimer, or equivalent is actually the recommended technique. Execution of CAAnimations always obeys wall- clock time, so you can be assured of completion after the duration has elapsed, regardless of system load. Alternatively, if you're providing your own CAAnimation instance to drive a particular animation (for layer-backed views, this would be done using an entry in a view's animations dictionary, or by overriding +defaultAnimationForKey: or -animationForKey:), you can set a delegate for the animation. The delegate will then receive an - animationDidStop:finished: message when the animation terminates, if the delegate implements such a method. Most of the time, the NSTimer approach is the simpler, more convenient way to go. Troy ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
NSManagedObjectModel initWithContentsOfURL: returns nil
I've been trying to open this core data model all day. XCode can open it. I'm passing the path the the model file as a file path parameter. NSManagedObjectModel* model = [[NSManagedObjectModel alloc]initWithContentsOfURL:[NSURL fileURLWithPath:modelFile]]; The modelFile is an absolute path. If I take this absolute path and use it in terminal with open modelFile then XCode happily pops up the model editor. So the path is good, presumably the model is good since XCode opens it. But I cannot make it happen programmatically. The path is /Users/todd/Projects/MyProjectGroup/MyProject/ BusinessModel.xcdatamodel/ The call returns nil. Nothing NSLogged, no exception, no clue provided at all - just silent failure (which in itself is a bug as far as I'm concerned). What would make it return nil? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: NSManagedObjectModel initWithContentsOfURL: returns nil
On Oct 16, 2008, at 2:33 PM, Todd Blanchard wrote: I've been trying to open this core data model all day. XCode can open it. I'm passing the path the the model file as a file path parameter. NSManagedObjectModel* model = [[NSManagedObjectModel alloc]initWithContentsOfURL:[NSURL fileURLWithPath:modelFile]]; The path is /Users/todd/Projects/MyProjectGroup/MyProject/ BusinessModel.xcdatamodel/ What you're trying to open is an Xcode data model, which Xcode can compile into a Core Data managed object model (.mom) file. Core Data can't read Xcode data model files directly. In part, this is because Xcode data model files are allowed to be inconsistent for development convenience -- for example, they can have relationships with no destination entity set -- while Core Data managed object model files require a minimum amount of consistency. Xcode's model compiler will generate warnings and errors to enforce that consistency during model compilation. -- Chris ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Calling UNIX command from Cocoa
Yeah I know about NSTask, I just can't get it too work correctly. On Oct 16, 2008, at 2:14 PM, Ken Thomases wrote: On Oct 16, 2008, at 3:09 PM, development2 wrote: Ok., I am sure I have seen one but can't seem to find it. I need an Open Source class to call a command line program with a couple of arguments. Does any one know of any and where I can find one? Do you need open source to see the source, or just so it's available for you to use. I ask because such a class is built into Cocoa, although it's closed source: NSTask. I suppose, if you really need to see source code, there's probably a version of NSTask in GnuStep. Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Calling UNIX command from Cocoa
On Oct 16, 2008, at 3:03 PM, development2 wrote: Yeah I know about NSTask, I just can't get it too work correctly. NSTask is one heck of a lot easier to use than any of the lower level calls except, maybe, popen(). It definitely works, too. What are the failure symptoms? b.bum smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Calling UNIX command from Cocoa
On Oct 17, 2008, at 00:08, Bill Bumgarner wrote: On Oct 16, 2008, at 3:03 PM, development2 wrote: Yeah I know about NSTask, I just can't get it too work correctly. NSTask is one heck of a lot easier to use than any of the lower level calls except, maybe, popen(). It took me also quite a while to get it working properly. Most examples were just too simplistic. By no means saying this is perfect but it seems to work: http://github.com/tcurdt/feedbackreporter/tree/master/Sources/Main/Command.m cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: [Moderator]Re: iPhone Development Mailing List
On Oct 16, 2008, at 20:09, Scott Anguish wrote: The NDA is still in effect, and will remain in effect until you receive the new program agreements. You can't talk about it here, and legally you can't talk about it elsewhere. When new agreements are sent to developers, new list guidelines will be sent as well. Please, Do not use this list to point to resources that are allowing NDA violations. The support forums have been poked yet again. I know it's not your fault, Scott. But this really is ridiculous. NDA lifted - but wait! The first rule of fight club is... you do not talk about fight club - just a little longer. Anyway ... I subscribed. Thanks for the link. With the official announcement from Apple I doubt anyone can really get into trouble talking about it anyway. IANAL but I guess everyone except people on this list are taking the risk. Sorry for the non-cocoa post. Just hope Apple is not continuing to make a bad joke out of this. cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Hand-building an Application Menu
My menus are generated programmatically, not with a NIB (non-negotiable). That works fine. I've been trying to get a correct Application menu, though, without success after a wasted day. The code I have is based on stuff I have found on the web and seems to make sense in principle. It all runs, but the app menu remains missing (the 1st time run) or incomplete (succeeding runs). Code follows, it gets called right after setting up the shared NSApp, before starting the run loop. There are no error messages or crashes---it is an expensive no-op. Thanks. void SetAppMenu(int aID, int pID, const char *appname) { NSMenu *appmenu, *srvmenu; NSString *nstr, *astr, *pstr, *hstr, *sstr, *qstr; NSMenuItem *itm, *aitm, *pitm, *sitm; if (!menu_delegate) menu_delegate = [[myMenuDelegate alloc] init]; nstr = [NSString stringWithFormat:@%s, appname]; astr = [NSString stringWithFormat:@About %s, appname]; pstr = [NSString stringWithFormat:@Preferences%C, (unichar)0x2026]; hstr = [NSString stringWithFormat:@Hide %s, appname]; qstr = [NSString stringWithFormat:@Quit %s, appname]; sstr = @Services; appmenu = setupMenu(nstr); srvmenu = setupMenu(sstr); aitm = [[NSMenuItem alloc] initWithTitle:astr action:@selector(about:) keyEquivalent:@]; [aitm setTarget:menu_delegate]; [aitm setTag:aID]; [appmenu addItem:aitm]; [appmenu addItem:[NSMenuItem separatorItem]]; pitm = [[NSMenuItem alloc] initWithTitle:pstr action:@selector(preferences:) keyEquivalent:@,]; [pitm setTarget:menu_delegate]; [pitm setTag:pID]; [appmenu addItem:pitm]; [appmenu addItem:[NSMenuItem separatorItem]]; sitm = [[NSMenuItem alloc] initWithTitle:sstr action:0 keyEquivalent:@]; [sitm setSubmenu:srvmenu]; [appmenu addItem:sitm]; [appmenu addItem:[NSMenuItem separatorItem]]; itm = [[NSMenuItem alloc] initWithTitle:hstr action:@selector(hide:) keyEquivalent: @h]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; itm = [[NSMenuItem alloc] initWithTitle: @Hide Others action:@selector(hideOtherApplications:) keyEquivalent:@]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; itm = [[NSMenuItem alloc] initWithTitle: @Show All action:@selector(unhideAllApplications:) keyEquivalent:@]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; [appmenu addItem:[NSMenuItem separatorItem]]; itm = [[NSMenuItem alloc] initWithTitle:qstr action:@selector(terminate:) keyEquivalent:@q]; [appmenu addItem:itm]; // Does this: [NSApp setAppleMenu:appmenu]; [NSApp performSelector:@selector(setAppleMenu:) withObject:appmenu]; [NSApp setServicesMenu:srvmenu]; } NSMenu *setupMenu(NSString *title)// title shouldn't be Null { NSMenu *men = [[NSMenu alloc] initWithTitle:title]; [men setAutoenablesItems:NO]; if (!menu_delegate) menu_delegate = [[myMenuDelegate alloc] init]; [men setDelegate:menu_delegate]; return men; } __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Enumerating a folder and getting a file's type
Hi, I'm enumerating a folder and checking the extension but I would also like to check the type in case there is no extension. Like AIFF Audio File for .aif file. How do you do that? thanks Jeff ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Desired Tabbing order not working
Hey Adil - Do you happen to have the Auto Recalculates View Loop checkbox checked in the containing window's attributes inspector? Jon Hess On Oct 16, 2008, at 1:31 PM, Adil Saleem wrote: Hi, There is a small problem i am having while using Interface Builder. I have multiple text fields on my window. I have specified my own sequence of nextKeyView, so that while tabbing through those text fields, it follows my desired order. I have made the required connections and it even shows them correctly in inspector window. But when i actually run the application, the order of nextKeyView is not the same as i had specified it. Please guide what can be wrong here. Or is there any special requirements for changing the nextKeyView order. Thanx ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/jhess%40apple.com This email sent to [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: executables for OSX 10.4 vs 10.5
On Oct 15, 2008, at 2:57 AM, Thomas Engelmeier wrote: Or is there some way to build a single app that runs on both and if so are there any drawbacks to doing this? The only drawback is you get partially buggy, backward compatible behavior on Leopard when you link against the 10.4 SDK. Can you elaborate? I was under the naive assumption that as long as I don't use any 10.5-only APIs the 10.4 SDK and the 10.5 SDK should behave the same. I like using the 10.4 SDK over the 10.5 SDK because it'll prevent me from accidently using 10.5-only calls that would then crash on 10.4. -Stefan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Enumerating a folder and getting a file's type
On Oct 16, 2008, at 5:46 PM, [EMAIL PROTECTED] wrote: I'm enumerating a folder and checking the extension but I would also like to check the type in case there is no extension. Like AIFF Audio File for .aif file. How do you do that? The narrow answer to your question is: make an NSURL from the file path and pass it to LSCopyKindStringForURL (NSURL is toll-free bridged with CFURLRef). However, you should consider working with UTIs (Uniform Type Identifiers) rather than checking either extensions or kind strings. Read up on UTIs here: http://developer.apple.com/documentation/Carbon/Conceptual/understanding_utis/ . You can use the NSWorkspace methods to check whether a file's UTI conforms to the type(s) you want to handle: -typeOfFile:error: and - type:conformsToType:. For AIFF audio, you want to check for conformance to the UTI public.aiff-audio. Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: executables for OSX 10.4 vs 10.5
On Thu, Oct 16, 2008 at 7:24 PM, Stefan Werner [EMAIL PROTECTED] wrote: Can you elaborate? I was under the naive assumption that as long as I don't use any 10.5-only APIs the 10.4 SDK and the 10.5 SDK should behave the same. Very much no. To fix bugs, but not break workarounds that people have developed, the bug fixes are often only enabled when linking against the new SDK. Read the Backward Compatibility paragraph of the AppKit Release Notes: http://developer.apple.com/releasenotes/Cocoa/AppKit.html --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Object is not reachable from this managed object context
Hello, I am developing an application that imports / synchronizes data from a web service . I have a worker thread performing the poll / sync routine. After I do the sync I refresh the main thread by calling mergeChangesFromContextDidSaveNotification. I get an exception with reason [Object is not reachable from this managed object context]. In the following code, saveComplete is the handler for NSManagedObjectContextDidSaveNotification. -(void)saveComplete:(NSNotification *)notification{ [self performSelectorOnMainThread:@selector(saveOnMain:) withObject:notification waitUntilDone:YES]; } -(void)saveOnMain:(NSNotification *)notification{ NSLog(@Refreshing main thread); NSManagedObjectContext * appContext = [[NSApp delegate] managedObjectContext]; [appContext lock]; @try{ [appContext mergeChangesFromContextDidSaveNotification:notification]; [EMAIL PROTECTED](NSException * exception){ NSLog([exception reason]); @throw; [EMAIL PROTECTED] [appContext unlock]; } NSLog(@Refresh suceeded); } I could not find any references to this error leading me to believe that I am doing something completely wrong and I have no clue what it is. Thanks in advance, Lakshmi. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: table bindings, value transformer per row?
On Oct 15, 2008, at 7:35 PM, [EMAIL PROTECTED] wrote: i've got a bound table view. is it possible to use a different value transformer based on which row of the table is being displayed/ edited? and if so, how? Yes, you can. The formatter is a property of the cell, and not the column, per se. You need an object that is the tableview's delegate, then implement -tableView:willDisplayCell:forTableColumn:row:. NSCell has a -setFormatter: method for your convenience. I have used this successfully without error, but I haven't performance tested it. I don't suspect that it is much slower. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Sharing a Bindings Controller between nibs
On Tue, Oct 14, 2008 at 6:30 PM, Citizen [EMAIL PROTECTED] wrote: So, what is the cleanest way (i.e with the least glue code) of connecting the two? Bind it through File's Owner. You may want to look into using an NSViewController for this. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: table bindings, value transformer per row?
i was asking about the value transformer that is specified for the binding. i am aware that it is quite easy to change formatters. thanx anyway, ken At 5:49 PM -0600 10/16/08, Keary Suska wrote: On Oct 15, 2008, at 7:35 PM, [EMAIL PROTECTED] wrote: i've got a bound table view. is it possible to use a different value transformer based on which row of the table is being displayed/edited? and if so, how? Yes, you can. The formatter is a property of the cell, and not the column, per se. You need an object that is the tableview's delegate, then implement -tableView:willDisplayCell:forTableColumn:row:. NSCell has a -setFormatter: method for your convenience. I have used this successfully without error, but I haven't performance tested it. I don't suspect that it is much slower. HTH, Keary Suska Esoteritech, Inc. Demystifying technology for your home or business ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Error in NSTask launch
I know it is something I am doinig but I am getting an error I can't seem to figure out. Here the code and then the error. NSString *exePath = [[NSBundle bundleWithIdentifier:@com.yourcompany.SetupDevice] pathForResource:@upnpsearch ofType:@]; RunCommand *command = [[RunCommand alloc] initWithPath:exePath]; // set up the args NSNumber *time = [NSNumber numberWithInt:15]; NSString *destPath = [NSString stringWithString:@/tmp]; NSArray *myArray = [NSArray arrayWithObjects: time, destPath, nil]; [command setArgs:myArray]; int result = [command execute]; Now in execute tI have the call: [task launch]; I get the error: 2008-10-16 19:36:21.530 Installer[39330:813] *** -[NSCFNumber fileSystemRepresentation]: unrecognized selector sent to instance 0x3fbe9a20 (gdb) continue 2008-10-16 19:36:24.751 Installer[39330:813] *** -[NSCFNumber fileSystemRepresentation]: unrecognized selector sent to instance 0x3fbe9a20 Now I know this is on the arguments that I am passing in to the command line, but they look fine to em (Above in code) can anyone else see anything wrong? Thanks, ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Error in NSTask launch
On Oct 16, 2008, at 7:49 PM, development2 wrote: RunCommand *command = [[RunCommand alloc] initWithPath:exePath]; // set up the args NSNumber *time = [NSNumber numberWithInt:15]; NSString *destPath = [NSString stringWithString:@/tmp]; NSArray *myArray = [NSArray arrayWithObjects: time, destPath, nil]; [command setArgs:myArray]; int result = [command execute]; From the documentation: arguments - An array of NSString objects that supplies the arguments to the task. Note that it doesn't mention NSNumber in the documentation, so it doesn't surprise me if some exceptions were raised. So if you change that 15 to a string, then it should work. Nick Zitzmann http://www.chronosnet.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Error in NSTask launch
development2 wrote: I know it is something I am doinig but I am getting an error I can't seem to figure out. Here the code and then the error. NSString *exePath = [[NSBundle bundleWithIdentifier:@com.yourcompany.SetupDevice] pathForResource:@upnpsearch ofType:@]; RunCommand *command = [[RunCommand alloc] initWithPath:exePath]; // set up the args NSNumber *time = [NSNumber numberWithInt:15]; NSString *destPath = [NSString stringWithString:@/tmp]; NSArray *myArray = [NSArray arrayWithObjects: time, destPath, nil]; [command setArgs:myArray]; int result = [command execute]; Now in execute tI have the call: [task launch]; I get the error: 2008-10-16 19:36:21.530 Installer[39330:813] *** -[NSCFNumber fileSystemRepresentation]: unrecognized selector sent to instance 0x3fbe9a20 (gdb) continue 2008-10-16 19:36:24.751 Installer[39330:813] *** -[NSCFNumber fileSystemRepresentation]: unrecognized selector sent to instance 0x3fbe9a20 Now I know this is on the arguments that I am passing in to the command line, but they look fine to em (Above in code) can anyone else see anything wrong? Thanks, well you're exec'ing a shell command, which needs command-line arguments as strings. So each of your arguments is being converted to a string ready to be sent to the shell. That's accomplished by calling fileSystemRepresentation on each of them. As you can see, NSCFNumber (ie your NSNumber) doesn't implement that method, which isn't that surprising, there is no one fileSystemRepresentation of a number, you might want an integer, or a float with a given number of decimals or the word TRUE or .. anything. You need to figure out what your shell command actually wants in string format, convert your NSNumber explicitly to that, and then pass that as an NSString ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Error in NSTask launch
On 17/10/2008, at 11:49 AM, development2 wrote: Now I know this is on the arguments that I am passing in to the command line, but they look fine to em (Above in code) can anyone else see anything wrong? The array of arguments that you pass to NSTask must be an array of NSStrings. You are trying to include an NSNumber, you must convert it to a string first. Also, you should use NSTemporaryDirectory() to get the location of the temporary files directory, you should not hard-code it. -- Rob Keniger ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Converting from HTML
Hi all, i'm trying to find a way to convert an HTML-originated URL into one I can use in cocoa. Example input: link type=application/rss+xml rel=alternate href=/ search/uniqueamp;stuffamp;here / I know the URL that this data is fetched from, so I can prefix that to achieve a full URL again, but I need to convert the amp; into plain ampersands, but there could be all kinds of HTML characters in there. Is there a category on NSString out there I could use for this? I read somewhere that I could use an NSAttributedString and initWithHTML, but that leaves me with an empty string. I'm guessing because it's inside a head tag? Not sure. I'm also open to using something more intelligent than my current method of searching the string for link to find the rss feed, if there's perhaps an easier way that would also convert the HTML characters for me. Maybe webkit has something for me? I look forward to your replies, and you have my thanks in advance. - Drarok ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Error in NSTask launch
Yep... I have been at this too long today. I read that and completely disregarded it. Thanks again. On Oct 16, 2008, at 7:56 PM, Nick Zitzmann wrote: On Oct 16, 2008, at 7:49 PM, development2 wrote: RunCommand *command = [[RunCommand alloc] initWithPath:exePath]; // set up the args NSNumber *time = [NSNumber numberWithInt:15]; NSString *destPath = [NSString stringWithString:@/tmp]; NSArray *myArray = [NSArray arrayWithObjects: time, destPath, nil]; [command setArgs:myArray]; int result = [command execute]; From the documentation: arguments - An array of NSString objects that supplies the arguments to the task. Note that it doesn't mention NSNumber in the documentation, so it doesn't surprise me if some exceptions were raised. So if you change that 15 to a string, then it should work. Nick Zitzmann http://www.chronosnet.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: [Moderator]Re: iPhone Development Mailing List
If you re-read the announcement, you'll see that the NDA is lifted ONLY after the new program terms go out. http://developer.apple.com/iphone/program/ They aren't out yet. So the NDA is still in effect. For the moment this is still not for public discussion on this list. Thanks scott [moderator] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Objective 2.0 properties
hi everyone! I have a problem that is taking me hours of debbuging time. So I decided to learn the origin of the problem. It's about properties (Objective C 2.0) As you know there are some kinds of properties (nonatomic, retain,asign, readonly, readwrite... etc) Let's thinks the next case : @interface Lesson : NSObject { NSString *lessonTitle; NSDate *referDate; NSNumber *lessonDuration; } @property (nonatomic, retain) NSString* lessonTitle; @property (nonatomic, retain) NSDate *referDate; @property (assign) NSNumber * lessonDuration; @property (readonly) UIImage * lessonImage; @end @implemetantion Lesson @synthesize lessonTitle; @synthesize referDate; @synthesize lessonDuration; -(UIImage *) lessonImage{ return [UIImage imageNamed: [NSString stringWithFormat:@cellImage%@,self.lessonTitle]]; //is self. ok? } @end So the question is Inside Lesson.m when i want to call or refer lessonTitle what is the best? self.lessonTitle or just only lessonTitle? (note that is nonatomic, retain)) the same Inside Lesson.m when I want to call or refer lessonDuration, What is the best? self.lessonDuration or just lessonDuration (note that is assign) the same Inside Lesson.m when I want to call or refer lessonImage what is the best? self.lessonImage or just lessonImage? (note that is readonly) I have been trying a lot of conbination and none of them result in compilation errors, but when I run the application it crashes.! So I would like to know the difference between self.property and just property I would appreciate your really kind explanation. Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Hand-building an Application Menu
Russ, Where do you add it to the main menu? -Jeff On Oct 16, 2008, at 5:45 PM, Russ wrote: My menus are generated programmatically, not with a NIB (non- negotiable). That works fine. I've been trying to get a correct Application menu, though, without success after a wasted day. The code I have is based on stuff I have found on the web and seems to make sense in principle. It all runs, but the app menu remains missing (the 1st time run) or incomplete (succeeding runs). Code follows, it gets called right after setting up the shared NSApp, before starting the run loop. There are no error messages or crashes---it is an expensive no-op. Thanks. void SetAppMenu(int aID, int pID, const char *appname) { NSMenu *appmenu, *srvmenu; NSString *nstr, *astr, *pstr, *hstr, *sstr, *qstr; NSMenuItem *itm, *aitm, *pitm, *sitm; if (!menu_delegate) menu_delegate = [[myMenuDelegate alloc] init]; nstr = [NSString stringWithFormat:@%s, appname]; astr = [NSString stringWithFormat:@About %s, appname]; pstr = [NSString stringWithFormat:@Preferences%C, (unichar)0x2026]; hstr = [NSString stringWithFormat:@Hide %s, appname]; qstr = [NSString stringWithFormat:@Quit %s, appname]; sstr = @Services; appmenu = setupMenu(nstr); srvmenu = setupMenu(sstr); aitm = [[NSMenuItem alloc] initWithTitle:astr action:@selector(about:) keyEquivalent:@]; [aitm setTarget:menu_delegate]; [aitm setTag:aID]; [appmenu addItem:aitm]; [appmenu addItem:[NSMenuItem separatorItem]]; pitm = [[NSMenuItem alloc] initWithTitle:pstr action:@selector(preferences:) keyEquivalent:@,]; [pitm setTarget:menu_delegate]; [pitm setTag:pID]; [appmenu addItem:pitm]; [appmenu addItem:[NSMenuItem separatorItem]]; sitm = [[NSMenuItem alloc] initWithTitle:sstr action:0 keyEquivalent:@]; [sitm setSubmenu:srvmenu]; [appmenu addItem:sitm]; [appmenu addItem:[NSMenuItem separatorItem]]; itm = [[NSMenuItem alloc] initWithTitle:hstr action:@selector(hide:) keyEquivalent: @h]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; itm = [[NSMenuItem alloc] initWithTitle: @Hide Others action:@selector(hideOtherApplications:) keyEquivalent:@]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; itm = [[NSMenuItem alloc] initWithTitle: @Show All action:@selector(unhideAllApplications:) keyEquivalent:@]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; [appmenu addItem:[NSMenuItem separatorItem]]; itm = [[NSMenuItem alloc] initWithTitle:qstr action:@selector(terminate:) keyEquivalent:@q]; [appmenu addItem:itm]; // Does this: [NSApp setAppleMenu:appmenu]; [NSApp performSelector:@selector(setAppleMenu:) withObject:appmenu]; [NSApp setServicesMenu:srvmenu]; } NSMenu *setupMenu(NSString *title)// title shouldn't be Null { NSMenu *men = [[NSMenu alloc] initWithTitle:title]; [men setAutoenablesItems:NO]; if (!menu_delegate) menu_delegate = [[myMenuDelegate alloc] init]; [men setDelegate:menu_delegate]; return men; } ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Objective 2.0 properties
--- On Thu, 10/16/08, Ignacio Enriquez [EMAIL PROTECTED] wrote: @interface Lesson : NSObject { NSString *lessonTitle; NSDate *referDate; NSNumber *lessonDuration; } @property (nonatomic, retain) NSString* lessonTitle; @property (nonatomic, retain) NSDate *referDate; @property (assign) NSNumber * lessonDuration; Why is lessonDuration assign? That's begging for a crash. All three of these should be copy since the classes all conform to NSCopying. So the question is Inside Lesson.m when i want to call or refer lessonTitle what is the best? self.lessonTitle or just only lessonTitle? (note that is nonatomic, retain)) I prefer to always use accessors. It simplifies memory management if nothing else. I have been trying a lot of conbination and none of them result in compilation errors, but when I run the application it crashes.! So I would like to know the difference between self.property and just property http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_2_section_3.html#//apple_ref/doc/uid/TP30001163-CH11-SW17 Cheers, Chuck __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Hand-building an Application Menu
Where do you add it to the main menu? I'm trying to use NSApplication's setAppleMenu --- the application menu isn't visible as part of the main menu (the call is at the end of my routine, below). Note that I do a setMainMenu later in my startup sequence. My understanding is that OSX has it's own private NSMenu for the application and system menus, and combines the mainmenu supplied with those private submenus. So it seems to be a battle to get at the semi-private menus, which is a bit maddening. On Oct 16, 2008, at 5:45 PM, Russ wrote: My menus are generated programmatically, not with a NIB (non- negotiable). That works fine. I've been trying to get a correct Application menu, though, without success after a wasted day. The code I have is based on stuff I have found on the web and seems to make sense in principle. It all runs, but the app menu remains missing (the 1st time run) or incomplete (succeeding runs). Code follows, it gets called right after setting up the shared NSApp, before starting the run loop. There are no error messages or crashes---it is an expensive no-op. Thanks. void SetAppMenu(int aID, int pID, const char *appname) { NSMenu *appmenu, *srvmenu; NSString *nstr, *astr, *pstr, *hstr, *sstr, *qstr; NSMenuItem *itm, *aitm, *pitm, *sitm; if (!menu_delegate) menu_delegate = [[myMenuDelegate alloc] init]; nstr = [NSString stringWithFormat:@%s, appname]; astr = [NSString stringWithFormat:@About %s, appname]; pstr = [NSString stringWithFormat:@Preferences%C, (unichar)0x2026]; hstr = [NSString stringWithFormat:@Hide %s, appname]; qstr = [NSString stringWithFormat:@Quit %s, appname]; sstr = @Services; appmenu = setupMenu(nstr); srvmenu = setupMenu(sstr); aitm = [[NSMenuItem alloc] initWithTitle:astr action:@selector(about:) keyEquivalent:@]; [aitm setTarget:menu_delegate]; [aitm setTag:aID]; [appmenu addItem:aitm]; [appmenu addItem:[NSMenuItem separatorItem]]; pitm = [[NSMenuItem alloc] initWithTitle:pstr action:@selector(preferences:) keyEquivalent:@,]; [pitm setTarget:menu_delegate]; [pitm setTag:pID]; [appmenu addItem:pitm]; [appmenu addItem:[NSMenuItem separatorItem]]; sitm = [[NSMenuItem alloc] initWithTitle:sstr action:0 keyEquivalent:@]; [sitm setSubmenu:srvmenu]; [appmenu addItem:sitm]; [appmenu addItem:[NSMenuItem separatorItem]]; itm = [[NSMenuItem alloc] initWithTitle:hstr action:@selector(hide:) keyEquivalent: @h]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; itm = [[NSMenuItem alloc] initWithTitle: @Hide Others action:@selector(hideOtherApplications:) keyEquivalent:@]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; itm = [[NSMenuItem alloc] initWithTitle: @Show All action:@selector(unhideAllApplications:) keyEquivalent:@]; [itm setTarget:menu_delegate]; [appmenu addItem:itm]; [appmenu addItem:[NSMenuItem separatorItem]]; itm = [[NSMenuItem alloc] initWithTitle:qstr action:@selector(terminate:) keyEquivalent:@q]; [appmenu addItem:itm]; // Does this: [NSApp setAppleMenu:appmenu]; [NSApp performSelector:@selector(setAppleMenu:) withObject:appmenu]; [NSApp setServicesMenu:srvmenu]; } NSMenu *setupMenu(NSString *title)// title shouldn't be Null { NSMenu *men = [[NSMenu alloc] initWithTitle:title]; [men setAutoenablesItems:NO]; if (!menu_delegate) menu_delegate = [[myMenuDelegate alloc] init]; [men setDelegate:menu_delegate]; return men; } __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Converting from HTML
Try this http://www.thinkmac.co.uk/blog/2005/05/removing-entities-from-html-in-cocoa.html On 17/10/2008, at 13:17 , Drarok Ithaqua wrote: Hi all, i'm trying to find a way to convert an HTML-originated URL into one I can use in cocoa. Example input: link type=application/rss+xml rel=alternate href=/search/uniqueamp;stuffamp;here / I know the URL that this data is fetched from, so I can prefix that to achieve a full URL again, but I need to convert the amp; into plain ampersands, but there could be all kinds of HTML characters in there. Is there a category on NSString out there I could use for this? I read somewhere that I could use an NSAttributedString and initWithHTML, but that leaves me with an empty string. I'm guessing because it's inside a head tag? Not sure. I'm also open to using something more intelligent than my current method of searching the string for link to find the rss feed, if there's perhaps an easier way that would also convert the HTML characters for me. Maybe webkit has something for me? I look forward to your replies, and you have my thanks in advance. - Drarok ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/nathan_day%40mac.com This email sent to [EMAIL PROTECTED] Nathan Day [EMAIL PROTECTED] http://homepage.mac.com/nathan_day/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Objective 2.0 properties
Let's start at the end, where you asked: On Oct 16, 2008, at 9:19 PM, Ignacio Enriquez wrote: So I would like to know the difference between self.property and just property self.property used for reading the property value (as opposed to setting it) is exactly equivalent to [self property]. That is, an invocation of the getter for the property. Let's thinks the next case : @interface Lesson : NSObject { NSString *lessonTitle; NSDate *referDate; NSNumber *lessonDuration; } @property (nonatomic, retain) NSString* lessonTitle; @property (nonatomic, retain) NSDate *referDate; @property (assign) NSNumber * lessonDuration; Using assign here is almost certainly not what you want. An NSNumber* is an object pointer. If you don't retain it, then you're failing to ensure that the object lives as long as your reference to it. @property (readonly) UIImage * lessonImage; @end @implemetantion Lesson @synthesize lessonTitle; @synthesize referDate; @synthesize lessonDuration; -(UIImage *) lessonImage{ return [UIImage imageNamed: [NSString stringWithFormat:@cellImage%@,self.lessonTitle]]; //is self. ok? } If you're using KVO or Bindings on the lessonImage property, make sure to tell KVO about its dependency on the lessonTitle property. +keyPathsForValuesAffectingKey @end So the question is Inside Lesson.m when i want to call or refer lessonTitle what is the best? self.lessonTitle or just only lessonTitle? (note that is nonatomic, retain)) Either may be used. The former calls the getter for the property, the latter accesses the instance variable directly. In this case, we know from what you've shown use that the getter for lessonTitle has no special side effects that you'd either want to be sure took effect or want to be sure to avoid. Direct access to the instance variable is slightly faster, but that should be that last of your concerns. the same Inside Lesson.m when I want to call or refer lessonDuration, What is the best? self.lessonDuration or just lessonDuration (note that is assign) Same as above. the same Inside Lesson.m when I want to call or refer lessonImage what is the best? self.lessonImage or just lessonImage? (note that is readonly) Just lessonImage surely won't compile. There is no instance variable named lessonImage. A naked reference to lessonImage is an attempt to access a variable, in this context usually an instance variable (it might also be a local variable or a global variable). I have been trying a lot of conbination and none of them result in compilation errors, Even the naked lessonImage?!? but when I run the application it crashes.! Where does it crash? What is the nature of the crash? Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Objective 2.0 properties
And because they are immutable types, if they are mutable then retain is probable the appropriate behaviour. Copy will become retain for truly immutable objects and if you get a subclass that is mutable then you don't want that changing under you so copy gives you a new immutable version. Assign really is not the right thing to do in this situation, what is to stop lessonDuration from disappearing underneath you. If you are trying to stop circular retains then assign is what you use, for example a container object retains its children, the children should not retain the parent. On 17/10/2008, at 14:02 , Charles Steinman wrote: @property (nonatomic, retain) NSString* lessonTitle; @property (nonatomic, retain) NSDate *referDate; @property (assign) NSNumber * lessonDuration; Why is lessonDuration assign? That's begging for a crash. All three of these should be copy since the classes all conform to NSCopying. Nathan Day [EMAIL PROTECTED] http://homepage.mac.com/nathan_day/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Object is not reachable from this managed object context
It looks to me like you are sharing one MOC between two threads (the web service update worker thread and the main thread). You need two MOC's. Write from the worker thread to the worker thread's MOC, then tell the main thread to refresh. Hal ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Calling UNIX command from Cocoa
Am 17.10.2008 um 00:03 Uhr schrieb development2: Yeah I know about NSTask, I just can't get it too work correctly. This might help: http://www.harmless.de/cocoa-code.php#shellwrapper Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
File icons shown upside down in the Open Recent menu
Noone out there who could give me a hint? ---snip--- I wonder what I could have done wrong that all document and folder icons which are automatically remembered and shown in our app's Open Recent menu are shown upside down. As we didn't change anything related with openDocument: and don't manipulate the Open Recent menu ourselves, I have no idea why the app shows this behaviour under Leopard. Other apps don't show their document or folder icons upside down in the Open Recent menu, so I really wonder if we have forgotten to adjust some parameters for Leopard here. ---snap--- +bestRegards:Ulf ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: [Moderator]Re: iPhone Development Mailing List
Torsten Curdt wrote: On Oct 16, 2008, at 20:09, Scott Anguish wrote: The NDA is still in effect, and will remain in effect until you receive the new program agreements. You can't talk about it here, and legally you can't talk about it elsewhere. When new agreements are sent to developers, new list guidelines will be sent as well. Please, Do not use this list to point to resources that are allowing NDA violations. The support forums have been poked yet again. I know it's not your fault, Scott. But this really is ridiculous. NDA lifted - but wait! Not to belabor the point - and this'll be all I'll post on the topic - Apple never did say the NDA *had*been* lifted. The only past-tense part of the announcement is that a decision had been made to lift it. The announcement is very brief and very clear in indicating that it describes an event intended to take place in the (near) future. The fact that a number of people somehow read the stated intent to do something as an indication that that thing had already been done doesn't magically make it so. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]