Re: Build and Archive fails due to missing dSYM file

2010-12-16 Thread jonat...@mugginsoft.com
On 16 Dec 2010, at 07:22, Graham Cox wrote: Hi all, I'm trying to use Build and Archive to prepare an app for submission to the Mac App Store. It fails because it is unable to copy the dSYM file to the archive. The error suggests that the format needs to be DWARF with dSYM, but that

Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread Devarshi Kulshreshtha
Hi Pat, Regarding: For #1, you have an non-ascii character at the front of the number formatter (in IB). It is now working correctly when I am entering the price with $ symbol prefixed, eg. $123,00 :) I think that this is not user intuitive, user may not always know that he/ she has to

Re: Re: How to read a text file over a network

2010-12-16 Thread Abhijeet Singh
Thanks ... It worked (/Volumes/{name of disk as it appears in the Finder} )RegardsAbhijeet Original message From:Nick Zitzmann n...@chronosnet.com Date: 14 Dec 10 12:38:27Subject: Re: How to read a text file over a networkTo: Cc: cocoa...@lists.apple.comon Dec 13, 2010, at 10:12 PM, Abhijeet

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread Andreas Grosam
On Dec 16, 2010, at 11:38 AM, Devarshi Kulshreshtha wrote: Hi Pat, Regarding: For #1, you have an non-ascii character at the front of the number formatter (in IB). Guess, ¤ (\u00A4) is the localized currency symbol defined in the International Components for Unicode Library (ICU)

App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Andreas Grosam
Hi All, An application (NSApplication) will not terminate if an exception is thrown:, eg: - (void) applicationDidFinishLaunching:(NSNotification*)notification { NSAssert(0, @failed); } or - (IBAction) buttonPressed:(id) sender { [self throwFatalError]; // throws NSException } The

what's the correct key path to observe for a BOOL property?

2010-12-16 Thread Roland King
If I have a property foo and it's boolean and has the getter/setter isFoo/setFoo:, what's the correct key path to observe for KVO, assuming default automatic KVO generation as provided by NSObject, is it 'foo', or is it 'isFoo'? It seemed to me that the method which triggers automatic KVO

NSView setAlphaValue question

2010-12-16 Thread Rick C.
Hello again, In my project I have a main window with a table view which displays filenames before further processing. The table view accepts drops and all is working as expected. About a week ago I had the idea to slap a view on top that says Drop files here and fades in/out and basically

Re: what's the correct key path to observe for a BOOL property?

2010-12-16 Thread Ken Thomases
On Dec 16, 2010, at 7:45 AM, Roland King wrote: If I have a property foo and it's boolean and has the getter/setter isFoo/setFoo:, what's the correct key path to observe for KVO, assuming default automatic KVO generation as provided by NSObject, is it 'foo', or is it 'isFoo'? It's foo.

Re: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Nick Zitzmann
On Dec 16, 2010, at 6:38 AM, Andreas Grosam wrote: In Cocoa, exceptions are considered fatal errors, and code is usually not exception safe. [citation needed] That is, after catching an exception, it is very probable that the application state is corrupted and can not be restored. So, is

Re: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Jean-Daniel Dupas
Le 16 déc. 2010 à 17:32, Nick Zitzmann a écrit : On Dec 16, 2010, at 6:38 AM, Andreas Grosam wrote: In Cocoa, exceptions are considered fatal errors, and code is usually not exception safe. [citation needed] From Introduction to Exception Programming Topics for Cocoa “Important:

Re: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Nick Zitzmann
On Dec 16, 2010, at 9:40 AM, Jean-Daniel Dupas wrote: Le 16 déc. 2010 à 17:32, Nick Zitzmann a écrit : On Dec 16, 2010, at 6:38 AM, Andreas Grosam wrote: In Cocoa, exceptions are considered fatal errors, and code is usually not exception safe. [citation needed] From

Re: Layer hosting views, geometryFlipped, and subviews

2010-12-16 Thread David Duncan
On Dec 15, 2010, at 11:53 PM, Gideon King wrote: Hi, I have a layer *hosting* view which has to use the geometryFlipped option so that it behaves correctly, and need to add an NSTextView subview for editing sometimes, and an ordinary custom view for editing at other times. I am having

Re: Layer hosting views, geometryFlipped, and subviews

2010-12-16 Thread Kyle Sluder
On Wed, Dec 15, 2010 at 11:53 PM, Gideon King gid...@novamind.com wrote: Hi, I have a layer *hosting* view which has to use the geometryFlipped option so that it behaves correctly, and need to add an NSTextView subview for editing sometimes, and an ordinary custom view for editing at other

Re: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Andreas Grosam
On Dec 16, 2010, at 5:32 PM, Nick Zitzmann wrote: See https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniAppKit/OAApplication.m for one such example. Thank you very much, this is exactly what I'm looking for! :) On Dec 16, 2010, at 5:55 PM, Nick Zitzmann wrote: On Dec 16,

UINavigationController in Popover

2010-12-16 Thread Gordon Apple
I've Googled this and have seen that others have had this problem, but no good solutions. When using a UINavigationController in a popover, where the content can be different sizes, the nav controller seems to always wants to make the popover full screen height, ignoring popover size settings.

Re: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread jonat...@mugginsoft.com
On 16 Dec 2010, at 19:24, Andreas Grosam wrote: On Dec 16, 2010, at 5:32 PM, Nick Zitzmann wrote: See https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniAppKit/OAApplication.m for one such example. Thank you very much, this is exactly what I'm looking for! :) This is

Re: Layer hosting views, geometryFlipped, and subviews

2010-12-16 Thread Gideon King
Oh wow! The voice of much pain speaking! Makes me want to cringe in the corner and say in a small voice but, but, but I just wanted to add a subview, sir. I got most of the way without having to use the geometryFlipped (using a transform to flip coordinates) - I had seen some of your, and

Re: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Kyle Sluder
On Thu, Dec 16, 2010 at 12:41 PM, jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: This is something that has had me scratching my upper organ casing too. The NSApplication docs state that NSApplicationMain is functionally similar to: void NSApplicationMain(int argc, char *argv[]) {  

NSSlider Mouse Up

2010-12-16 Thread koko
What is the preferred way of receiving an action when the mouse is released in an NSSlider? -koko ___ 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: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Dave Keck
Look up NSExceptionHandler. NSExceptionHandler (and NSSetUncaughtExceptionHandler for that matter) can't help because the exception is being caught by AppKit. Furthermore, the NSApplication subclass technique mentioned earlier won't work in all cases either, since some AppKit/Foundation wrap

Re: NSSlider Mouse Up

2010-12-16 Thread Ken Ferry
Hi Koko, On Thu, Dec 16, 2010 at 2:37 PM, k...@highrolls.net wrote: What is the preferred way of receiving an action when the mouse is released in an NSSlider? The preferred thing is not to do precisely that. It's to have the action method use, say, -performSelector:withObject:afterDelay:

Re: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Dave Keck
Presumably it is more functionally similar to: On my system, the exception is being caught from within -[NSApplication run]. So it would look like the implementation of -run shown here: http://cocoawithlove.com/2009/01/demystifying-nsapplication-by.html with a @try around the calls to

Re: NSSlider Mouse Up

2010-12-16 Thread koko
After posting I found a Carbon function GetCurrentButtonState; I call this in my slider action method and if the mouse is up I do my clean up and return otherwise I do the live slider action. Seems to work just fine. Am I OK with this? -koko On Dec 16, 2010, at 3:54 PM, Ken Ferry wrote:

Re: NSSlider Mouse Up

2010-12-16 Thread Fritz Anderson
I'm at the airport and without access to the documentation, but I doubt that Cocoa promises that NSSlider will always be implemented in terms of a Carbon button. I think you've stumbled on an undocumented technique that accidentally happens to work. Take the advice about the performSelector:

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread Flavio Donadio
Devarshi, These are pretty simple. It is now working correctly when I am entering the price with $ symbol prefixed, eg. $123,00 :) I think that this is not user intuitive, user may not always know that he/ she has to prefix dollar symbol. I think it would have been good if: 1. I can

Re: NSSlider Mouse Up

2010-12-16 Thread Kyle Sluder
010/12/16 Fritz Anderson fri...@manoverboard.org: I'm at the airport and without access to the documentation, but I doubt that Cocoa promises that NSSlider will always be implemented in terms of a Carbon button. I think you've stumbled on an undocumented technique that accidentally happens

Re: NSToolbarItem Craziness

2010-12-16 Thread Seth Willits
On Dec 15, 2010, at 5:58 PM, k...@highrolls.net wrote: So why is not the action method called when the item is enabled but a table has focus? Probably because the toolbar has no target, thus the action is being sent up the responder chain and something before your controller responds to that

Re: Build and Archive fails due to missing dSYM file [SOLVED]

2010-12-16 Thread Graham Cox
On 16/12/2010, at 8:34 PM, jonat...@mugginsoft.com wrote: Presumably you have checked that the target level settings for the release build have not been modified to override the project level settings. Thanks Jonathan, indeed that was the case, I overlooked it about 50 times for some

Re: NSView setAlphaValue question

2010-12-16 Thread Seth Willits
On Dec 16, 2010, at 6:34 AM, Rick C. wrote: ... So I had that working too until I realized in Leopard the view won't accept setAlphaValue unless I tick the box in IB for core animation. So I did tick the box for window view and it worked but it broke a lot of subsequent UI

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread mmalc Crawford
On Dec 16, 2010, at 3:45 pm, Flavio Donadio wrote: [self setValue:[NSDate date] forKey:@datePurchased]; Don't use KVC to set managed object properties unless you have a good reason (dynamic code). Core Data generates accessor methods for you that are much more efficient to use:

Re: NSView setAlphaValue question

2010-12-16 Thread Rick C.
Thanks Seth I appreciate the input and yes I think I can handle that! I should have thought of that already... :-) As a note...I wasn't actually using animator I was just reducing the alpha via a repeating timer since I liked the effect better but the end result was the same problem so I

ImageAndTextCell editing problem

2010-12-16 Thread Fernando Valente
Hey, I got ImageAndTextCell and I'm using it on a NSOutlineView. When I double click a cell in order to edit it, I get the following error: 2010-12-16 05:31:54.399 MyApp[26823:a0f] -[NSCFString representedObject]: unrecognized selector sent to instance 0xa0aff968 Does anyone know a solution

Image conversion to RGBA colors

2010-12-16 Thread Gideon King
Hi, I have an arbitrary (user supplied) image, and I want to get the RGBA values of each pixel of the image. I'm thinking that I should create it as an NSImage and then use the TIFFRepresentation to get it into an NSBitmapImageRep object, and then walk through and pick up the colors, but it

Re: Image conversion to RGBA colors

2010-12-16 Thread Ken Ferry
On Thu, Dec 16, 2010 at 7:48 PM, Gideon King gid...@novamind.com wrote: Hi, I have an arbitrary (user supplied) image, and I want to get the RGBA values of each pixel of the image. I'm thinking that I should create it as an NSImage and then use the TIFFRepresentation to get it into an

Re: ImageAndTextCell editing problem

2010-12-16 Thread Nick Zitzmann
On Dec 16, 2010, at 12:35 AM, Fernando Valente wrote: Hey, I got ImageAndTextCell and I'm using it on a NSOutlineView. When I double click a cell in order to edit it, I get the following error: 2010-12-16 05:31:54.399 MyApp[26823:a0f] -[NSCFString representedObject]: unrecognized

Re: NSView setAlphaValue question (Update still not working)

2010-12-16 Thread Rick C.
Hi again Seth, Ok I thought that was easy enough but something is still not right. When I code my view to be redrawn at varying alpha and then have my controller send the message when it's time to be redrawn it does not work in Leopard (Snow Leopard again no problem). Now the view is

NSManagedObject editor, open source project (useful for iOS projects)

2010-12-16 Thread Devraj Mukherjee
Hi all, As part of our upcoming iOS app, which involves editing a lot of data on the device, we developed and have Open Sourced a Managed Object Editor, which reads its configuration from a JSON file and presents a Grouped TableView based editor interface. It can handle, relationships and

Re: NSView setAlphaValue question (Update still not working)

2010-12-16 Thread Seth Willits
On Dec 16, 2010, at 8:45 PM, Rick C. wrote: Ok I thought that was easy enough but something is still not right. When I code my view to be redrawn at varying alpha and then have my controller send the message when it's time to be redrawn it does not work in Leopard (Snow Leopard again no

File name issue with German umlauts

2010-12-16 Thread Ulf Dunkel
I wonder if I have to handle NSString for folder/file names in a special way. My issue: When I search for an existing folder named äöütest, it isn't found, until I enter the search string not via keyboard to a search field in my app, but copy it from the folder name in the Finder and paste it

Re: App Will Not Terminate After Uncaught Excpetion

2010-12-16 Thread Jean-Daniel Dupas
Le 17 déc. 2010 à 00:06, Dave Keck a écrit : Presumably it is more functionally similar to: On my system, the exception is being caught from within -[NSApplication run]. So it would look like the implementation of -run shown here:

Re: File name issue with German umlauts

2010-12-16 Thread Stephen J. Butler
On Fri, Dec 17, 2010 at 1:34 AM, Ulf Dunkel dun...@calamus.net wrote: I wonder if I have to handle NSString for folder/file names in a special way. My issue: When I search for an existing folder named äöütest, it isn't found, until I enter the search string not via keyboard to a search field