Re: Dial with Bluetooth

2008-10-16 Thread Nick Zitzmann
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

Re: tearing my hair, ok here is a compilable example.

2008-10-16 Thread Chris Idou
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: %@,

NSComboBox select change

2008-10-16 Thread Joseph Yu
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

Re: Objective-C parameter mutation

2008-10-16 Thread Sherm Pendley
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

Re: tearing my hair, ok here is a compilable example.

2008-10-16 Thread Stephen J. Butler
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;

Re: tearing my hair, ok here is a compilable example.

2008-10-16 Thread Stephen J. Butler
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

AW: Dial with Bluetooth

2008-10-16 Thread Thomas Bartelmess
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

Project path

2008-10-16 Thread Quentin Arnault
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

Re: custom nstextview

2008-10-16 Thread Matteo Manferdini
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

NSTextView user input bug in 10.4

2008-10-16 Thread Michael LaMorte
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

Length of a filename

2008-10-16 Thread Gerriet M. Denkmann
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 ) ...

Re: NSTextfield in tableColumn changing color slow

2008-10-16 Thread Corbin Dunn
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

Re: Length of a filename

2008-10-16 Thread Jean-Daniel Dupas
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:

Re: Length of a filename

2008-10-16 Thread Michael Ash
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

NSTextfield in tableColumn changing color slow

2008-10-16 Thread Steven Hamilton
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

Re: AW: Dial with Bluetooth

2008-10-16 Thread Nick Zitzmann
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

Re: table bindings, value transformer per row?

2008-10-16 Thread Sean McBride
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

Re: how to use the loginItem in OSX 10.3?

2008-10-16 Thread Chris Idou
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,

Re: Project path

2008-10-16 Thread Quentin Arnault
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

how to use the loginItem in OSX 10.3?

2008-10-16 Thread XiaoGang Li
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

Re: tearing my hair, Do we agree it’s a bu g?

2008-10-16 Thread Chris Idou
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:

How to get icon of special folder (like /Applications or /Library)?

2008-10-16 Thread Alexander Shmelev
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.

Re: NSComboBox select change

2008-10-16 Thread I. Savant
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:

iPhone Development Mailing List

2008-10-16 Thread Stefan Arentz
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

Re: tearing my hair, ok here is a compilable example.

2008-10-16 Thread Chris Suter
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

Re: Project path

2008-10-16 Thread I. Savant
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

How can I launch Preview.app from my application for collection of images

2008-10-16 Thread Alexander Shmelev
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.

Re: How can I launch Preview.app from my application for collection of images

2008-10-16 Thread Fritz Anderson
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

Re: tearing my hair, ok here is a compilable example.

2008-10-16 Thread Stephen J. Butler
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. ___

Re: how to use the loginItem in OSX 10.3?

2008-10-16 Thread David Duncan
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

Resize the NSCollectionViewItem's view

2008-10-16 Thread gMail.com
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

Re: iPhone Development Mailing List

2008-10-16 Thread Stefan Arentz
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

Re: How to get icon of special folder (like /Applications or /Library)?

2008-10-16 Thread Mike Abdullah
[[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

Faceless background app that uses NSAppleScript

2008-10-16 Thread Scott Ribe
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

Re: how to complete c/s app

2008-10-16 Thread Scott Ribe
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.

Re: Faceless background app that uses NSAppleScript

2008-10-16 Thread Stephen J. Butler
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

Re: Faceless background app that uses NSAppleScript

2008-10-16 Thread Jason Coco
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

Re: Faceless background app that uses NSAppleScript

2008-10-16 Thread Scott Ribe
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

Re: Faceless background app that uses NSAppleScript

2008-10-16 Thread jason . coco
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

Format Specifier Problem

2008-10-16 Thread Adil Saleem
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

Re: Format Specifier Problem

2008-10-16 Thread Jens Beuckenhauer
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

[Moderator]Re: iPhone Development Mailing List

2008-10-16 Thread Scott Anguish
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

Re: NSTokenField: Tokenizing on Right Arrow key

2008-10-16 Thread Aki Inoue
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-).

Unable to parse special characters using NSXMLParser

2008-10-16 Thread JanakiRam
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

Get service requester application name

2008-10-16 Thread Вера
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

NSPredicateEditorRowTemplate and CoreData

2008-10-16 Thread Arved von Brasch
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

newbie: send message to class not instance

2008-10-16 Thread Horst Jäger
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

Re: newbie: send message to class not instance

2008-10-16 Thread Bill Bumgarner
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

Re: Unable to parse special characters using NSXMLParser

2008-10-16 Thread Dave Carrigan
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

Re: Get service requester application name

2008-10-16 Thread Peter Ammon
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

Re: Unable to parse special characters using NSXMLParser

2008-10-16 Thread JanakiRam
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

Re: Unable to parse special characters using NSXMLParser

2008-10-16 Thread Benjamin Dobson
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

Re: NSPredicateEditorRowTemplate and CoreData

2008-10-16 Thread Peter Ammon
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

Re: tearing my hair out: +(NSSet *)keyPathsForValuesAffectingValueForKey:

2008-10-16 Thread Ken Thomases
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?

Re: How to get icon of special folder (like /Applications or /Library)?

2008-10-16 Thread Ken Thomases
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

Calling UNIX command from Cocoa

2008-10-16 Thread development2
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

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Ken Thomases
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

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Franklin Marmon
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

Re: -[NSMutableSet addObject:] Ambiguous Docs: -isEqual: vs. ==

2008-10-16 Thread Keith Duncan
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

Desired Tabbing order not working

2008-10-16 Thread Adil Saleem
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

Re: Faceless background app that uses NSAppleScript

2008-10-16 Thread has
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

Re: Length of a filename

2008-10-16 Thread Gerriet M. Denkmann
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

Re: Multiple persistent store coordinators gotchas?

2008-10-16 Thread Dave Dribin
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

Re: Animating view transitions with Core Animation (problems with BasicCocoaAnimations sample)

2008-10-16 Thread Troy Stephens
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]

NSManagedObjectModel initWithContentsOfURL: returns nil

2008-10-16 Thread Todd Blanchard
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

Re: NSManagedObjectModel initWithContentsOfURL: returns nil

2008-10-16 Thread Chris Hanson
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

Re: Calling UNIX command from Cocoa

2008-10-16 Thread development2
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

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Bill Bumgarner
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

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Torsten Curdt
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

Re: [Moderator]Re: iPhone Development Mailing List

2008-10-16 Thread Torsten Curdt
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

Hand-building an Application Menu

2008-10-16 Thread Russ
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,

Enumerating a folder and getting a file's type

2008-10-16 Thread jeffs87
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

Re: Desired Tabbing order not working

2008-10-16 Thread Jonathan Hess
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

Re: executables for OSX 10.4 vs 10.5

2008-10-16 Thread Stefan Werner
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.

Re: Enumerating a folder and getting a file's type

2008-10-16 Thread Ken Thomases
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

Re: executables for OSX 10.4 vs 10.5

2008-10-16 Thread Kyle Sluder
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

Object is not reachable from this managed object context

2008-10-16 Thread Lakshmi Vyasarajan
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

Re: table bindings, value transformer per row?

2008-10-16 Thread Keary Suska
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,

Re: Sharing a Bindings Controller between nibs

2008-10-16 Thread Kyle Sluder
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

Re: table bindings, value transformer per row?

2008-10-16 Thread [EMAIL PROTECTED]
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

Error in NSTask launch

2008-10-16 Thread development2
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

Re: Error in NSTask launch

2008-10-16 Thread Nick Zitzmann
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];

Re: Error in NSTask launch

2008-10-16 Thread Roland King
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

Re: Error in NSTask launch

2008-10-16 Thread Rob Keniger
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

Converting from HTML

2008-10-16 Thread Drarok Ithaqua
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

Re: Error in NSTask launch

2008-10-16 Thread development2
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];

Re: [Moderator]Re: iPhone Development Mailing List

2008-10-16 Thread Scott Anguish
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

Objective 2.0 properties

2008-10-16 Thread Ignacio Enriquez
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 :

Re: Hand-building an Application Menu

2008-10-16 Thread Jeff Johnson
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

Re: Objective 2.0 properties

2008-10-16 Thread Charles Steinman
--- 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)

Re: Hand-building an Application Menu

2008-10-16 Thread Russ
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

Re: Converting from HTML

2008-10-16 Thread Nathan Day
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

Re: Objective 2.0 properties

2008-10-16 Thread Ken Thomases
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

Re: Objective 2.0 properties

2008-10-16 Thread Nathan Day
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.

Re: Object is not reachable from this managed object context

2008-10-16 Thread Hal Mueller
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

Re: Calling UNIX command from Cocoa

2008-10-16 Thread Andreas Mayer
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

File icons shown upside down in the Open Recent menu

2008-10-16 Thread Ulf Dunkel
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

Re: [Moderator]Re: iPhone Development Mailing List

2008-10-16 Thread Gregory Weston
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,