[OT] Re: Looking for PCI card with IR transmitter ports and OS X drivers

2009-11-26 Thread Alastair Houghton
On 26 Nov 2009, at 03:17, Brad Gibbs wrote: I couldn't find a dedicated hardware list, so, I thought I'd post this here. Perhaps, next time I have a question about elephants, since there isn't an elephant specific mailing list on Apple's website, I should post it here too? Come on... this is

changing dock label name of my app

2009-11-26 Thread Nick Rogers
Hi, for some reasons, my app is named like MyApp-1. And I want the label over the dock icon to appear as MyApp. how to go about it? thanks, Nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: changing dock label name of my app

2009-11-26 Thread Symadept
Project= Edit Active Target Search for MyApp in the search bar. Whereever you find MyApp-1, replace it to MyApp. Regards Mustafa On Thu, Nov 26, 2009 at 5:15 PM, Nick Rogers roger...@mac.com wrote: Hi, for some reasons, my app is named like MyApp-1. And I want the label over the dock icon

Problem with NSNumberFormater setted in IB

2009-11-26 Thread Gustavo Pizano
Hello all. I have a NSTable which contents are bound to a NSArrayController. In the table I set up a NSNumberFormatter for currency in one of the columns. When I click the add button I can edit the row of the table, but when I arrive to the column that has the formatter, I see a ( € 0.00)

Re: Problem with NSNumberFormater setted in IB

2009-11-26 Thread Matthew Lindfield Seager
On Thursday, November 26, 2009, Gustavo Pizano gustavxcodepic...@gmail.com wrote: so its kinda annoying to type the value with the currency symbol, or even worst with the mouse select only the digits to be edited. I dunno if I didn't configure properly the Formatter in IB. Any ideas? This

Re: changing dock label name of my app

2009-11-26 Thread Nick Rogers
hi, thanks for the reply. actually my app project itself is named as MyApp. Later I'm renaming it to MyApp-1 in the finder before using it (a must). So the folder hierarchy is MyApp-1/Contents/MacOS/MyApp And I want it to remain this way and just want to change the dock icon label from MyApp-1

Re: changing dock label name of my app

2009-11-26 Thread Graham Cox
Not 100% sure but isn't the displayed name CFBundleName in the info.plist? --Graham On 26/11/2009, at 8:50 PM, Nick Rogers wrote: hi, thanks for the reply. actually my app project itself is named as MyApp. Later I'm renaming it to MyApp-1 in the finder before using it (a must). So the

Re: changing dock label name of my app

2009-11-26 Thread Nick Rogers
hi, i'm changing the app name to MyApp-1 only in the finder, still the name displayed in the dock when launched is MyApp-1. i'm using OS 10.6.2. thanks, Nick On 26-Nov-2009, at 3:26 PM, Graham Cox wrote: Not 100% sure but isn't the displayed name CFBundleName in the info.plist? --Graham

Re: Problem with NSNumberFormater setted in IB

2009-11-26 Thread Gustavo Pizano
Sorry about it.. I didn't google enough tough... Thanks for the info. Gustavo On Nov 26, 2009, at 10:43 AM, Matthew Lindfield Seager wrote: On Thursday, November 26, 2009, Gustavo Pizano gustavxcodepic...@gmail.com wrote: so its kinda annoying to type the value with the currency symbol, or

Re: NSURLConnection retaining delegate?

2009-11-26 Thread Mike Abdullah
On 26 Nov 2009, at 07:23, Alexander Spohr wrote: Am 25.11.2009 um 23:25 schrieb Jerry Krinock: On 2009 Nov 25, at 12:53, Alexander Spohr wrote: I meant NSURLConnection. * Normally the delegate is receiving and storing headers, data and errors for you. You should retain the

Re: changing dock label name of my app

2009-11-26 Thread Shawn Erickson
On Thu, Nov 26, 2009 at 1:15 AM, Nick Rogers roger...@mac.com wrote: Hi,  for some reasons, my app is named like MyApp-1. And I want the label over the dock icon to appear as MyApp. how to go about it? You can use localization of the bundle display name to do that. Don't have the details in

NSDatePicker updates its values on changing System's time zone

2009-11-26 Thread Arun
Hi All, In my application i use a NSDatePicker with stepper to display hours and minutes. When i change the Timezone of the system in System Preferences, the value in the Date Picker changes. How can we prevent change of value in the Date picker when system time zone changes? Thanks Arun KA

Re: GC, variable optimized away wrongly?

2009-11-26 Thread Shawn Erickson
On Wed, Nov 25, 2009 at 5:04 AM, Kyle Sluder kyle.slu...@gmail.com wrote: On Wed, Nov 25, 2009 at 4:50 AM, Nick Rogers roger...@mac.com wrote: Why is etaDouble is being optimized away? Because it is unused. For those that may be wondering why etaDouble is optimized out but not the lines above

Re: NSDatePicker updates its values on changing System's time zone

2009-11-26 Thread Keary Suska
On Nov 26, 2009, at 8:15 AM, Arun wrote: Hi All, In my application i use a NSDatePicker with stepper to display hours and minutes. When i change the Timezone of the system in System Preferences, the value in the Date Picker changes. How can we prevent change of value in the Date picker

Re: NSDatePicker updates its values on changing System's time zone

2009-11-26 Thread Mike Abdullah
NSDatePicker takes an NSDate as its value. When you change the system timezone, that value does not change. It is still the same NSDate with the same value describing the same point in time. But because the system timezone has changed, the formatted string equivalent has changed to match. So

Global Object

2009-11-26 Thread Tom Jones
I'm writing a Foundation tool and I want to create a global object which I can reference any where in my code. This is for logging, so I want to declare my logging object in my main method and use it in any of my classes. I thought I could just create a Global variable but that does not work.

Re: Global Object

2009-11-26 Thread Sean McBride
On 11/26/09 9:18 AM, Tom Jones said: I thought I could just create a Global variable but that does not work. It should. What do I need to do? Post code. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Research

Re: Global Object

2009-11-26 Thread Alastair Houghton
On 26 Nov 2009, at 17:23, Sean McBride wrote: On 11/26/09 9:18 AM, Tom Jones said: I thought I could just create a Global variable but that does not work. It should. What do I need to do? Post code. And explain how that does not work. e.g. Compiler error? Nothing happening when

Re: How do you use an Application ID for an iPhone application

2009-11-26 Thread David Duncan
On Nov 24, 2009, at 10:50 PM, Ian Piper wrote: Thanks - that seems a bit clearer. I'm still not clear though what, if any, use I need to make of the Application ID. From your reply it appears that I don't use it as a prefix in the bundle identifier after all. Is that right? No, you should

Re: UIImageView Animation Question

2009-11-26 Thread David Duncan
On Nov 25, 2009, at 3:49 PM, Philip Vallone wrote: CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:@moveImageDown context:context]; [UIView setAnimationDuration:1.0]; [imageView setCenter:CGPointMake(295, 480 / 2 )]; [UIView

Re: different width in fastenumeration

2009-11-26 Thread David Duncan
On Nov 24, 2009, at 3:47 AM, Hans van der Meer wrote: Doing NSDictionary *objects enumerate over its keys thus: for ( id key in [objects allKeys] ) {} Keep in mind that regardless of what other errors you are getting, you don't actually need to do this. Iterating over a dictionary by

Custom Controls Where to start

2009-11-26 Thread Sandro Noël
Hi all, I'm trying to educate myself on how to create my custom controls/Views. Everywhere i look no one uses the same methods to override drawing and behaviour. and most of the example do not start from the same place, Some start from NSControl with a combination of NSCell and NSActionCell

show selected image in a segmented control

2009-11-26 Thread Pierre Berloquin
Hi I'm using a segmented control with four segments. I initialise it with four images. It does display the images perfectly but ... it doesn't show which image is selected. How can I highlight the selected segment/image? Should I provide two images for each segment? But how? Thanks Pierre

Re: UIImageView Animation Question

2009-11-26 Thread Philip Vallone
Hi David, Thanks for the reply. When I remove the reference to UIGraphicsGetCurrentContext() my Image doesn't drop in. Removed: CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:@moveImageDown context:context]; The following code works: imageView = [ [

Re: show selected image in a segmented control

2009-11-26 Thread Sandro Noël
On 2009-11-26, at 2:04 PM, Pierre Berloquin wrote: Hi I'm using a segmented control with four segments. I initialise it with four images. It does display the images perfectly but ... it doesn't show which image is selected. How can I highlight the selected segment/image? Should I provide

Re: Custom Controls Where to start

2009-11-26 Thread Alastair Houghton
On 26 Nov 2009, at 18:22, Sandro Noël wrote: I'm trying to educate myself on how to create my custom controls/Views. Everywhere i look no one uses the same methods to override drawing and behaviour. and most of the example do not start from the same place, :-) There are, as you have

No document could be created. error

2009-11-26 Thread Dragan Mili#263
Hi everybody, I've got a document-based application which, up until recently, took advantage of the document-based API for all new document creation and opening of existing ones, which means I've never invoked methods like -[NSDocumentController openDocumentWithContentsOfURL:display:error:],

My try/catch block isn't catching exceptions on 10.6

2009-11-26 Thread Mark Allan
Hi folks, I've got a section of code which crashes intermittently under 10.6 but despite being enclosed in try/catch blocks, my app is still forced to terminate. For what it's worth, all of the crash reports are from 10.6.x. My app seems to be rock solid when run under 10.4 and 10.5.

Re: Custom Controls Where to start

2009-11-26 Thread Sandro Noël
Thank you Alastair. Well it's pretty complicated, This is my third application, the first being Bonjour Mounter, the Second RDP Launcher. Others were created but never released. I've always used the OS's controls but now I find myself frustrated with the limits of these controls in terms of

Re: My try/catch block isn't catching exceptions on 10.6

2009-11-26 Thread Graham Cox
On 27/11/2009, at 10:51 AM, Mark Allan wrote: @catch (NSException *e) { NSLog(@Splat! Reason: %@, [e reason]); Maybe the exception isn't an NSException*, and therefore uncaught by this. Does Objective C support multiple catch blocks, like C++? In other words you could

Re: My try/catch block isn't catching exceptions on 10.6

2009-11-26 Thread Dave Keck
PS. Yes, I know there are faster and more efficient ways to enumerate an array, but the old-school 'for' loop approach still comes to mind first and I still prefer it for small arrays. Overlooking the speed benefits, fast enumeration will also throw an exception if the array you're enumerating

Sheet comes up disabled on second showing

2009-11-26 Thread Graham Cox
Hi all, Got a weird one here, which has me slightly mystified. I have a straightforward sheet containing a table and some buttons. First time I show it, it comes up fine and works as it should. All subsequent times, the whole interface is disabled except for the default button, so I can close

Core Data - any way to back it with something other than SQLite 3?

2009-11-26 Thread William Squires
Hi all! Is there a way to back a Core Data model with a relational DB other than SQLite 3? For example, PostGREs, or MySQL? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Core Data - any way to back it with something other than SQLite 3?

2009-11-26 Thread Jerry Krinock
On 2009 Nov 26, at 18:53, William Squires wrote: Is there a way to back a Core Data model with a relational DB other than SQLite 3? For example, PostGREs, or MySQL? You can create your own custom store but it must be atomic, so my guess is no since these relational DB are not atomic.

Re: show selected image in a segmented control

2009-11-26 Thread Jerry Krinock
On 2009 Nov 26, at 11:04, Pierre Berloquin wrote: I'm using a segmented control with four segments. I initialise it with four images. It does display the images perfectly but ... it doesn't show which image is selected. I use segmented controls with images and do not have this problem. The

Re: show selected image in a segmented control

2009-11-26 Thread Sandro Noël
On 2009-11-26, at 11:02 PM, Jerry Krinock wrote: On 2009 Nov 26, at 11:04, Pierre Berloquin wrote: I'm using a segmented control with four segments. I initialise it with four images. It does display the images perfectly but ... it doesn't show which image is selected. I use segmented

How to remove all objects from a NSTreeController ?

2009-11-26 Thread Sébastien Stormacq
Dear All, I am developing an Cocoa application using a NSTreeView, bound to a NSTreeController. The application is build around a master-detail structure, with an NSOutlineView on the left side and a NSTableView on the right side (similar to iTunes) I would like to remove all elements from

Re: How to remove all objects from a NSTreeController ?

2009-11-26 Thread Rob Keniger
On 26/11/2009, at 11:27 PM, Sébastien Stormacq wrote: I am developing an Cocoa application using a NSTreeView, bound to a NSTreeController. The application is build around a master-detail structure, with an NSOutlineView on the left side and a NSTableView on the right side (similar to

Re: How to remove all objects from a NSTreeController ?

2009-11-26 Thread Sébastien Stormacq
Hello, I am using a NSArrayController to bind the content of my data to the table (bindings) --Seb On 27 Nov 2009, at 06:58, Matthew Lindfield Seager wrote: You're trying to delete proxy objects... But it sounds like you are doing things the hard way. Are you using data source methods

Re: How to remove all objects from a NSTreeController ?

2009-11-26 Thread Sébastien Stormacq
On 27 Nov 2009, at 07:04, Rob Keniger wrote: On 26/11/2009, at 11:27 PM, Sébastien Stormacq wrote: I am developing an Cocoa application using a NSTreeView, bound to a NSTreeController. The application is build around a master-detail structure, with an NSOutlineView on the left side and

Re: UIImageView Animation Question

2009-11-26 Thread David Duncan
On Nov 26, 2009, at 11:31 AM, Philip Vallone wrote: Hi David, Thanks for the reply. When I remove the reference to UIGraphicsGetCurrentContext() my Image doesn't drop in. Removed: CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:@moveImageDown

Re: How to remove all objects from a NSTreeController ?

2009-11-26 Thread Rob Keniger
On 27/11/2009, at 4:26 PM, Sébastien Stormacq wrote: You don't need to do this. Just create an NSArrayController for your NSTableView that is bound to the selection key of the NSTreeController. The NSArrayController will then populate the table view for you. I am binding to