Re: NSScanner troubles

2010-12-10 Thread Ken Thomases
On Dec 10, 2010, at 9:38 PM, WT wrote: > thank you both for the very fast response. You're welcome. > Is that behavior of NSScanner documented anywhere? I read the docs but don't > remember coming across it. I'm a bit stunned. What's the point of having a > scanner if it ignores certain key as

Re: NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Michael Robinson
NSLog(@"%@", [NSUnarchiver unarchiveObjectWithFile:@"/Users/facelap/Sites/Work/Data.archive"]); Outputs: (null) NSLog(@"%@", [NSDictionary dictionaryWithContentsOfURL:fileUrl]); outputs: { "$archiver" = NSKeyedArchiver; "$objects" = ( "$null", {

Re: NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Michael Robinson
Correction: I meant NSKeyedArchiver / NSKeyedUnarchiver On 23/07/64 7:59 AM, Michael Robinson wrote: Hi List, I'm wondering if it is possible to extract all keys from a Data.archive file that was saved with an NSArchiver? Note I no longer have the source code that saved this file, hence my des

Re: NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Michael Robinson
yes, it's noise... Also it's not just one, they're save files for an old program I made - I'd like to be able to extract the data so I can save it in the format used for more recent versions Here's the contents of one of the files when opened with TextEdit: bplist00‘

Re: another Core Data and Undo Question

2010-12-10 Thread Jerry Krinock
On 2010 Dec 07, at 17:14, kvic...@pobox.com wrote: > i have a core data app … i have setGroupsByEvent set to NO Wow, I've found that setGroupsByEvent:NO generally causes all hell to break loose with Core Data – many warnings printed to Console, and exceptions raised. I've made it a rule to ne

Re: NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Dave Keck
> yes, it's noise... > > Also it's not just one, they're save files for an old program I made - I'd > like to be able to extract the data so I can save it in the format used for > more recent versions NSPropertyListSerialization could probably help too. If Property List Editor can't parse it thoug

Re: NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Dave Keck
> Note I no longer have the source code that saved this file, hence my > desire to extract the keys & information stored there. Have you tried opening your archive in Property List Editor or TextEdit? It's just a plist. ___ Cocoa-dev mailing list (Cocoa

Re: NSScanner troubles

2010-12-10 Thread WT
Hi Greg and Ken, thank you both for the very fast response. Is that behavior of NSScanner documented anywhere? I read the docs but don't remember coming across it. I'm a bit stunned. What's the point of having a scanner if it ignores certain key aspects of the locale? NSNumberFormatter is the

Re: NSScanner troubles

2010-12-10 Thread Ken Thomases
On Dec 10, 2010, at 9:06 PM, WT wrote: > Note that the scanner returns the wrong result when the string to be parsed > contains a '.' but I can't see why. NSScanner doesn't understand group separators, regardless of locale. You want to look into NSNumberFormatter. Cheers, Ken ___

Re: NSScanner troubles

2010-12-10 Thread Greg Parker
On Dec 10, 2010, at 7:06 PM, WT wrote: > I wrote some code to parse doubles from strings in a locale (pt_BR) where the > grouping and decimal separators are "." and "," respectively (the exact > opposite of en_US). It should be a piece of cake, but I'm not getting the > correct results. Can some

NSScanner troubles

2010-12-10 Thread WT
Hi all, I wrote some code to parse doubles from strings in a locale (pt_BR) where the grouping and decimal separators are "." and "," respectively (the exact opposite of en_US). It should be a piece of cake, but I'm not getting the correct results. Can someone please tell me what obvious fact I

NSUnarchiver / Data.archive Extract all Keys

2010-12-10 Thread Michael Robinson
Hi List, I'm wondering if it is possible to extract all keys from a Data.archive file that was saved with an NSArchiver? Note I no longer have the source code that saved this file, hence my desire to extract the keys & information stored there. Thanks Mike __

Re: label color

2010-12-10 Thread James Walker
On 12/9/2010 4:25 PM, Kyle Sluder wrote: [back on list] On Thu, Dec 9, 2010 at 4:22 PM, Ariel Feinerman wrote: Don`t worry, I know the C ;-) I mean scheme of colors (where 0x000E is green, blue, so on) Ohh. Sorry, can't help ya there. :) I'm sure someone's figured it out, though. It also wou

NSFetchedResultsController fetchedObjects changing?

2010-12-10 Thread Abhi Beckert
Hi, I have a UITableView, with a datasource using array of NSDictionary objects for the view (it used to be more complicated, but I've changed it to track down a bug). I have a single method which builds the array of dictionary's: - (void)reloadInspectionResults { if (dispatch_get_curr

Re: iOS: Monospaced fonts aren't?

2010-12-10 Thread Ian Joyner
I just heard an interesting program on "Fighting for Authentic Design": http://www.abc.net.au/rn/bydesign/stories/2010/3087247.htm Some of the links on my page were broken. Does anyone know what has happened to the excellent screenfonts.ca site? I have also added Courier to Courier New comparis

Re: iOS: Monospaced fonts aren't?

2010-12-10 Thread Ian Joyner
On 11 Dec 2010, at 11:02, Phillip Mills wrote: > On 2010-12-10, at 5:38 PM, Ian Joyner wrote: > >> Is plain Courier not available on iOS? > > Courier is there but with the same problem. How about other monospaced fonts? Monaco is the only other common one I can think of (or Andale Mono): http

Re: iOS: Monospaced fonts aren't?

2010-12-10 Thread Phillip Mills
On 2010-12-10, at 5:38 PM, Ian Joyner wrote: > Is plain Courier not available on iOS? Courier is there but with the same problem. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: label color

2010-12-10 Thread Gerriet M. Denkmann
On 10 Dec 2010, at 21:36, cKyle Sluder wrote: > > > [back on list] > > On Thu, Dec 9, 2010 at 4:22 PM, Ariel Feinerman wrote: >> Don`t worry, I know the C ;-) >> I mean scheme of colors (where 0x000E is green, blue, so on) > > Ohh. Sorry, can't help ya there. :) I'm sure someone's figured i

Re: TableView deselection issue

2010-12-10 Thread Luke the Hiesterman
You say you're calling deselectRowAtIndexPath: - tableView:willDeselectRowAtIndexPath: is only called when the row is deselected due to a user action, but in this case it's due to a programmatic action, so the delegate method won't be called. It sounds like what you want to do is to do your bac

TableView deselection issue

2010-12-10 Thread Damien Cooke
Hi All, I have a perplexing yet, probably, very simple problem. I have a tableView that when a cell is selected I pop in a different cell background (just a little pizzazz) only problem is that it is all backfiring on me as my willSelectRowAtIndexPath gets called fine and my funky image gets p

Re: iOS: Monospaced fonts aren't?

2010-12-10 Thread Ian Joyner
On 11 Dec 2010, at 07:16, Murat Konar wrote: > Maybe CourierNewPS-BoldMT is not a monospaced font? It sounds like one of those rip-off fonts that have polluted the font space. Is plain Courier not available on iOS? I have some links about fonts from one of my pages (click the 'here' links): ht

Re: Getting nextKeyView to work

2010-12-10 Thread Ricky Sharp
On Dec 9, 2010, at 9:25 PM, Stevo Brock wrote: > Hi All, > > I'm having trouble getting things set up so that I can tab between my > NSTextViews properly. I have a window that has a TabView as the only > top-level view. When I put 3 TextViews in the first tab, I have not yet been > able to

Re: NSSegmentedControl in select any mode not working with textured appearance?

2010-12-10 Thread Peter Ammon
On Dec 9, 2010, at 8:45 AM, Jesper Papmehl-Dufay wrote: > Hi! > > I'm having a bit of trouble with the segmented control. > I'm trying to use it as a group of check buttons (I set the Mode to Select > Any in Interface Builder). > This works fine as long as I don't set the Style to Textured Roun

Re: Implementing async notifications

2010-12-10 Thread Sixten Otto
On Fri, Dec 10, 2010 at 2:50 PM, Jon Sigman wrote: > I have a Cocoa app that uses a dedicated thread to receive messages, and I > would > like that thread to post those messages as notifications so they can be > processed asynchronously, outside my receiving loop (but not on the main > thread). >

Re: iOS: Monospaced fonts aren't?

2010-12-10 Thread Phillip Mills
A little more investigation: On 2010-12-10, at 2:39 PM, Phillip Mills wrote: > I've been having one of those "I must be doing something stupid" days. [...] > 2010-12-10 14:19:03.936 FontTest[1834:207] .1234567890123456789012. size: > 317.00 > 2010-12-10 14:19:03.937 FontTest[1834:207] .

Re: iOS: Monospaced fonts aren't?

2010-12-10 Thread Murat Konar
Maybe CourierNewPS-BoldMT is not a monospaced font? _murat On Dec 10, 2010, at 11:39 AM, Phillip Mills wrote: > I've been having one of those "I must be doing something stupid" days. The > code I'm trying to write needs to pad one string with spaces so that certain > characters line up visual

Implementing async notifications

2010-12-10 Thread Jon Sigman
I have a Cocoa app that uses a dedicated thread to receive messages, and I would like that thread to post those messages as notifications so they can be processed asynchronously, outside my receiving loop (but not on the main thread). Looking at NSNotificationQueue, I'm totally confused by it.

iOS: Monospaced fonts aren't?

2010-12-10 Thread Phillip Mills
I've been having one of those "I must be doing something stupid" days. The code I'm trying to write needs to pad one string with spaces so that certain characters line up visually with selected characters in a different string (within a view). It seemed like a relatively easy task as long as I

Re: NSDocument app where the document is a SQLite file

2010-12-10 Thread davelist
On Dec 7, 2010, at 11:13 AM, davel...@mac.com wrote: > I've written a few small personal Mac apps and one iOS app and now am > attempting to write my first NSDocument-based Mac application. I would like > the document itself to be a SQLite file (with specific tables for my app - > not a generi

Re: Finding references to object

2010-12-10 Thread Nick Zitzmann
On Dec 10, 2010, at 7:33 AM, Remco Poelstra wrote: > Hi, > > Instruments tells me that I've a reference to an object, while I believe that > that reference should no longer exist (and the object be deallocated). How > can I now find out what objects have references to my > should-be-deallocat

NSDatePickerCell in TableViews

2010-12-10 Thread PJBorges
Hi, does anybody know how to implement with the proper code an nsdatepickercell in a tableview? My app is core data based. --Philip ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Finding references to object

2010-12-10 Thread Remco Poelstra
Hi, Instruments tells me that I've a reference to an object, while I believe that that reference should no longer exist (and the object be deallocated). How can I now find out what objects have references to my should-be-deallocated-object? Kind regards, Remco Poelstra

Re: [iOS] How to add push animation to view controller without a navigation controller

2010-12-10 Thread Tharindu Madushanka
Hi, Thanks. But. This works with two views appearing as pushed. But I would like to have animation for my next view controller. But with two view controllers when other view controller shown, how could we present that with similar animation. // animate up view with fade CATransition *animati

Re: [iOS] How to add push animation to view controller without a navigation controller

2010-12-10 Thread Andreas Grosam
On Dec 10, 2010, at 6:52 AM, Tharindu Madushanka wrote: > Hi, > > I would like to present my next view controller in a way that pushed in. But > my first view controller is not a navigation controller. > > How could I do this. Is it possible ? If you want a view to be animated in the same way