Re: NSComboBox in NSTableView behaving strangely

2011-07-06 Thread Quincey Morris
On Jul 5, 2011, at 04:11, Devarshi Kulshreshtha wrote: When I am selecting a value in dropdown list of combobox cell, it is changing the value of previously selected value to newly selected value, as shown in below figure(s) - A combo box is a kind of text field, not a kind of menu, so yes

Re: finder eject images

2011-07-06 Thread Matt Gough
As everyone else has been saying, NSWorkspace image for type/file APIs and +[NSImage imageNamed:] are the API, and if it isn't there, you can file a bug but should use your own artwork. (As it says in the NSImage header.) Even if it isn't available via imageNamed, you might still be able to

Re: NSComboBox in NSTableView behaving strangely

2011-07-06 Thread Devarshi Kulshreshtha
same problem exists in NSPopUpButtonCell, it is changing the value in list which appears on clicking it, as shown - Original list: http://dl.dropbox.com/u/259/unique%20data.png Changed list: http://dl.dropbox.com/u/259/redundant%20data.png Bindings used in case of NSPopUpButtonCell are:

Dynamically loading NIB files with a common stem

2011-07-06 Thread Vincent Habchi
Hi there, I'm, as we say in French, tearing my hair away with this little problem: Briefly, I have an object in a NIB file, and I'd like it to load further NIB files (through +[NSBundle loadNibNamed:owner:] calls), all of them ending with the same suffix (ex: onefoo, twofoo, threefoo). I just

Re: QTMovie not playing in new window

2011-07-06 Thread Michael Babin
On Jul 4, 2011, at 4:21 AM, Paolo Franzetti wrote: - (IBAction) playButtonClicked: (id) sender { MoviePlayerController *moviePlayerWindow = [[MoviePlayerController alloc] initWithWindowNibName:@MoviePlayer]; [moviePlayerWindow showWindow:self]; NSError *error; NSString *moviePath =

Re: Dynamically loading NIB files with a common stem

2011-07-06 Thread Alexander Reichstadt
Try: NSArray *sometest = [[NSBundle mainBundle] pathsForResourcesOfType:@nib inDirectory:@.]; for (id thisOne in sometest){ NSLog(@This is a path:%@,thisOne); } Am 06.07.2011 um 14:04 schrieb Vincent Habchi: Hi there, I'm, as we say in French, tearing my hair away with this little

Re: Animating a flickering display

2011-07-06 Thread douglas welton
Have you looked at using Quartz Composer as a solution to accomplish this? On Jul 4, 2011, at 2:31 PM, Dr. Scott Steinman wrote: My program needs to display counterphase flickering test, i.e., one display is white text on a black background, and the other is black text on a white

Question about MPMediaQuery

2011-07-06 Thread Eric E. Dolecki
I am wondering if I need to recreate MPMediaQuery each time I want to use it and am changing grouping type and filter predicates... or can I simply create that once and then change filters, etc. on it. Wondering if it would speed my code up. Thanks, Eric

Re: Dynamically loading NIB files with a common stem

2011-07-06 Thread vincent habchi
Le 6 juil. 2011 à 14:27, Alexander Reichstadt l...@mac.com a écrit : Try: NSArray *sometest = [[NSBundle mainBundle] pathsForResourcesOfType:@nib inDirectory:@.]; for (id thisOne in sometest){ NSLog(@This is a path:%@,thisOne); } Thanks for the hint, I'll do that right away. Viel

Re: How to resolve bulk warning Creating selector for nonexistent method ...?

2011-07-06 Thread Steve Christensen
You mentioned switching between debug and release configurations, so that would be a good first place to look since individual build settings can be set on a per-configuration basis. On Jul 5, 2011, at 3:59 PM, arri wrote: Hi Steve, Thanks for your reply! Usually i would be tempted to get

NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)

2011-07-06 Thread Vincent Habchi
Re-hi, implementing Alexander's idea, I wrote this code to load Nibs ending with Connector: - (void)fetchAndInitializeConnectors { // Search all NIB files ending with connector and load them for (NSString * path in [[NSBundle mainBundle] pathsForResourcesOfType:@nib

Re: NSDatePicker weirdness with time.

2011-07-06 Thread Fritz Anderson
On 6 Jul 2011, at 12:16 AM, Trygve Inda wrote: It seems that NSDateFormatters instantiated in my nibs get their zone set to PDT (because of my time settings), despite having called [NSTimeZone setDefaultTimeZone:[NSTimeZone timeZoneWithAbbreviation:@GMT]]; Before any nibs are loaded.

Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)

2011-07-06 Thread Ken Thomases
On Jul 6, 2011, at 9:08 AM, Vincent Habchi wrote: implementing Alexander's idea, I wrote this code to load Nibs ending with Connector: - (void)fetchAndInitializeConnectors { // Search all NIB files ending with connector and load them for (NSString * path in [[NSBundle

Re: Delay in reading cookie using NSHttpCookieStorage

2011-07-06 Thread Fritz Anderson
On 5 Jul 2011, at 7:57 AM, Hirendra Rathor wrote: I experimented further and waited for few seconds after the 'alert' dialog box was displayed. Since I did not dismiss the dialog box, my application was also not launched. After a while I saw the content of the cookie in Cookies.plist

Re: Question about MPMediaQuery

2011-07-06 Thread Fritz Anderson
On 6 Jul 2011, at 7:38 AM, Eric E. Dolecki wrote: I am wondering if I need to recreate MPMediaQuery each time I want to use it and am changing grouping type and filter predicates... or can I simply create that once and then change filters, etc. on it. Wondering if it would speed my code up.

Re: Question about MPMediaQuery

2011-07-06 Thread Eric E. Dolecki
Thanks for your answer - I'll check it out. Eric On Wed, Jul 6, 2011 at 10:54 AM, Fritz Anderson fri...@manoverboard.org wrote: On 6 Jul 2011, at 7:38 AM, Eric E. Dolecki wrote: I am wondering if I need to recreate MPMediaQuery each time I want to use it and am changing grouping type and

Re: NSDatePicker weirdness with time.

2011-07-06 Thread Kyle Sluder
On Wed, Jul 6, 2011 at 7:11 AM, Fritz Anderson fri...@manoverboard.org wrote: On 6 Jul 2011, at 12:16 AM, Trygve Inda wrote: It seems that NSDateFormatters instantiated in my nibs get their zone set to PDT (because of my time settings), despite having called [NSTimeZone

Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)

2011-07-06 Thread Kyle Sluder
On Wed, Jul 6, 2011 at 7:08 AM, Vincent Habchi vi...@macports.org wrote: However, I end up in a cycle, whereby the call to [NSBundle loadNibNamed:name owner:self] generates a (unexpected) callback to -awakeFromNib. How come? Is this normal behavior? This is normal behavior on Mac OS X. It is

Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)

2011-07-06 Thread Vincent Habchi
Le 6 juil. 2011 à 17:09, Kyle Sluder a écrit : On Wed, Jul 6, 2011 at 7:08 AM, Vincent Habchi vi...@macports.org wrote: However, I end up in a cycle, whereby the call to [NSBundle loadNibNamed:name owner:self] generates a (unexpected) callback to -awakeFromNib. How come? Is this normal

Re: Delay in reading cookie using NSHttpCookieStorage

2011-07-06 Thread Jens Alfke
I don’t think the cookie storage is guaranteed to be 100% in sync across apps all the time. WebKit is probably batching up changes in memory before writing them out to disk. You should probably find a different way to do what you’re doing. Also, launching an applet to launch your app seems

Re: Dynamically loading NIB files with a common stem

2011-07-06 Thread Douglas Davidson
On Jul 6, 2011, at 5:27 AM, Alexander Reichstadt wrote: NSArray *sometest = [[NSBundle mainBundle] pathsForResourcesOfType:@nib inDirectory:@.]; It isn't necessary to use @. here; you should be able to pass nil for that argument if the resources in question are not in a subdirectory. From

Re: NSDatePicker weirdness with time.

2011-07-06 Thread Raleigh Ledet
This conversation started about NSDatePicker. Now you are referring to NSDateFormatter. Which one are you dealing with? My test shows that a nib instantiated NSDatePicker has a nil timeZone value. -raleigh On Jul 6, 2011, at 8:05 AM, Kyle Sluder wrote: On Wed, Jul 6, 2011 at 7:11 AM, Fritz

Re: iOS: AVFoundation, AVAssetWriter and caching

2011-07-06 Thread Steve Christensen
With the caveat that I haven't actually tried it, would it make more sense to be streaming the movie data to a local file, then specifying the URL/path to the file in the initializer method of one of the movie player classes? If the player can handle the case where not all the movie data is

Re: iOS: AVFoundation, AVAssetWriter and caching

2011-07-06 Thread Heath Borders
I'm pretty sure someone else on the list tried exactly that, and it didn't work. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Wed, Jul 6, 2011 at 11:40 AM, Steve Christensen puns...@mac.com wrote: With the caveat that I haven't actually tried

Using a Soundex category...

2011-07-06 Thread Eric E. Dolecki
I found a Soundex NSString category here: http://www.cocoadev.com/index.pl?NSStringSoundex However, when I tried it out I get strange results... //someString is set to different strings each time tested BOOL test = [someString soundsLikeString:@Face]; NSLog(@sounds like Face: %d,test); Place =

Re: Using a Soundex category...

2011-07-06 Thread Douglas Davidson
On Jul 6, 2011, at 11:23 AM, Eric E. Dolecki wrote: I found a Soundex NSString category here: http://www.cocoadev.com/index.pl?NSStringSoundex However, when I tried it out I get strange results... //someString is set to different strings each time tested BOOL test = [someString

Re: Using a Soundex category...

2011-07-06 Thread glenn andreas
On Jul 6, 2011, at 1:23 PM, Eric E. Dolecki wrote: I found a Soundex NSString category here: http://www.cocoadev.com/index.pl?NSStringSoundex However, when I tried it out I get strange results... //someString is set to different strings each time tested BOOL test = [someString

Re: Using a Soundex category...

2011-07-06 Thread Wim Lewis
On 6 Jul 2011, at 11:23 AM, Eric E. Dolecki wrote: However, when I tried it out I get strange results... //someString is set to different strings each time tested BOOL test = [someString soundsLikeString:@Face]; NSLog(@sounds like Face: %d,test); Place = 0 Ace = 0 Mace = 0 Fake = 1

Re: Using a Soundex category...

2011-07-06 Thread Lars Sonchocky-Helldorf
Am 06.07.2011 um 20:23 schrieb Eric E. Dolecki: I found a Soundex NSString category here: http://www.cocoadev.com/index.pl?NSStringSoundex However, when I tried it out I get strange results... //someString is set to different strings each time tested BOOL test = [someString

Re: Using a Soundex category...

2011-07-06 Thread Eric E. Dolecki
Thanks for the feedback. I now see how this works. I am using the Nuance iOS SDK to verbally search an iPhone's music library and play music based on what the user asked for (with and without keywords). The Levenstein stuff sometimes works, now going to add this to see if it can fill in some of

Re: Using a Soundex category...

2011-07-06 Thread Greg Guerin
Eric E. Dolecki wrote: http://www.cocoadev.com/index.pl?NSStringSoundex However, when I tried it out I get strange results... //someString is set to different strings each time tested BOOL test = [someString soundsLikeString:@Face]; NSLog(@sounds like Face: %d,test); Place = 0 Ace = 0 Mace =

Re: Using a Soundex category...

2011-07-06 Thread Eric E. Dolecki
NSString *z = [NSString stringWithFormat:@#%@,stringValue]; NSLog(@soundexString: %@, [z soundexString]); NSLog(@soundexString2: %@, [stringValue soundexString]); NSLog(@soundexString3: %@, [@#Face soundexString]); NSLog(@soundexString4: %@, [@Face soundexString]); BOOL test =

Loading Nibs which are self-ref

2011-07-06 Thread Kevin Muldoon
I'm seeking to do a copyObject class that has it's own progress window. So, I'm doing my research and I see a technique for loading a nib with an object, like so... MyDocument *myDocument = [[MyDocument alloc] init]; [NSBundle loadNibNamed:@MyDocument owner:myDocument]; [owner:myDocument

Re: Using a Soundex category...

2011-07-06 Thread Scott Ribe
On Jul 6, 2011, at 12:23 PM, Eric E. Dolecki wrote: It would seem something is off to get negatives on Place, Ace Mace. That's Soundex. First character is matched literally. You might want to look at Metaphone, rather than using an algorithm that was designed in the 19th century for

Re: Using a Soundex category...

2011-07-06 Thread Eric E. Dolecki
Funny - I bolted in a Metaphone2 class I found online eariler. Face becomes fs and place becomes pls. Then Levenstein comes pretty close. Thanks! Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Wed, Jul 6, 2011

How to change font trait and font family for a NSBrowserCell

2011-07-06 Thread Sandeep Mohan Bhandarkar
Hi All, I am trying to set a particular font for the NSBrowserCell. Basically i want some of the cells in the Browser to Appear in bold. I tried the following in the browser willDisplayCell method but with no success. can some one please let me know what is the correct approach - (void)

Re: Loading Nibs which are self-ref

2011-07-06 Thread Wim Lewis
On 6 Jul 2011, at 2:43 PM, Kevin Muldoon wrote: I'm seeking to do a copyObject class that has it's own progress window. So, I'm doing my research and I see a technique for loading a nib with an object, like so... MyDocument *myDocument = [[MyDocument alloc] init]; [NSBundle

Re: Animating a flickering display

2011-07-06 Thread Scott Steinman
Thanks for the help. I don't know Quartz Composer yet, but I'll take a look at the documentation and see if it fits my needs for the current program. I've been mulling it over, and may create a git branch to try Core Animation. First, it may facilitate future alternative animated displays

Re: NSDatePicker weirdness with time.

2011-07-06 Thread Trygve Inda
On Wed, Jul 6, 2011 at 7:11 AM, Fritz Anderson fri...@manoverboard.org wrote: On 6 Jul 2011, at 12:16 AM, Trygve Inda wrote: It seems that NSDateFormatters instantiated in my nibs get their zone set to PDT (because of my time settings), despite having called [NSTimeZone

Core Data Predicate Question

2011-07-06 Thread Indragie Karunaratne
Hi all, I have a Core Data object model that I'm trying to write a fetch predicate for (to use for search). Quick explanation of the model: We'll call the main entity Book. There's also a Keyword entity. The Book entity has a to-many relationship with the Keyword entity called keywords. In

[Moderator] Re: Lion's Auto Save Versions

2011-07-06 Thread Scott Anguish
Lion is still under non-disclosure. Discussion is available at devforums.apple.com, but it is not appropriate here. Scott moderator On Jul 5, 2011, at 4:24 PM, Brad Stone wrote: I'm testing my app in Lion with 4.1 and I'd like to play around with Auto Save and Versions

What is returned from CFLocaleGetSystem?

2011-07-06 Thread Mark Schisler
When attempting to use CFLocaleGetSystem() as a parameter to CFDateFormatterCreate(), a call to CFDateFormatterGetAbsoluteTimeFromString() using the created CFDateFormatterRef seemed to always return false. However, when I changed the code to use a locale created by CFLocaleCopyCurrent,

Re: Dynamically loading NIB files with a common stem

2011-07-06 Thread vincent habchi
Le 6 juil. 2011 à 18:10, Douglas Davidson a écrit : It isn't necessary to use @. here; you should be able to pass nil for that argument if the resources in question are not in a subdirectory. From the header comments: subpath is a relative path to a subdirectory inside the relevant