Re: [ myWorkSpace openURL: myurl ] is leaking. Why??

2009-12-11 Thread Bill Bumgarner
On Dec 10, 2009, at 11:55 PM, Parimal Das wrote: > I must be missing something here. > Can anyone point what is wrong here. (1) there is no need for an autorelease pool in such a simple -awakeFromNib. It will be in the context of an autorelease pool to begin with and doesn't create enough mem

Anyone written a framework for setting xattr attributes?

2009-12-11 Thread Scott Anguish
The subject says pretty much everything. I’m looking for a simple way to set some xattr attributes. thanks scott ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Anyone written a framework for setting xattr attributes?

2009-12-11 Thread Uli Kusterer
On 11.12.2009, at 09:33, Scott Anguish wrote: > The subject says pretty much everything. I’m looking for a simple way to set > some xattr attributes. http://www.zathras.de/sourcecode.htm#UKXattrMetadataStore That about what you're looking for? Cheers, -- Uli Kusterer "The Witnesses of TeachText

Re: Finding process path from Cocoa?

2009-12-11 Thread Uli Kusterer
On 09.12.2009, at 23:49, Laurent Daudelin wrote: > I guess that with Carbon not being ported to 64bits, NSRunningApplication was > needed. It just makes life a little harder if you have to support both 10.5 > (which doesn't have NSRunningApplication but has Process Manager) and 10.6 > (which has

NSBezierPath vs. NSImage

2009-12-11 Thread Michael Abendroth
Hi, when drawing custom buttons, should you use NSBezierPath or NSImage instances? Which is more efficient, performance-wise / memory-wise? Thanks for any tips, - Mike ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin re

Re: NSBezierPath vs. NSImage

2009-12-11 Thread Alastair Houghton
On 11 Dec 2009, at 09:10, Michael Abendroth wrote: > when drawing custom buttons, should you use NSBezierPath or NSImage instances? Yes. > Which is more efficient, performance-wise / memory-wise? You probably don't need to worry too much about this on modern systems. In fact, I'll go further

Re: Additional action when a view's value changes (Cocoa Bindings)

2009-12-11 Thread Christian Ziegler
On 10.12.2009, at 13:26, Graham Cox wrote: > > On 10/12/2009, at 10:45 PM, Christian Ziegler wrote: > >> In the target controller I don't have IBOutlets for those steppers and >> textfields. Those are in another (mediating) controller. Question is whether >> there is another way to do this in

Re: NSBezierPath vs. NSImage

2009-12-11 Thread Michael Abendroth
On Fri, Dec 11, 2009 at 11:14 AM, Alastair Houghton wrote: > On 11 Dec 2009, at 09:10, Michael Abendroth wrote: > >> when drawing custom buttons, should you use NSBezierPath or NSImage >> instances? > > Yes. > >> Which is more efficient, performance-wise / memory-wise? > > You probably don't need

Re: NSBezierPath vs. NSImage

2009-12-11 Thread Alastair Houghton
On 11 Dec 2009, at 10:35, Michael Abendroth wrote: > Woah, thanks a lot, Alastair! The reason I asked was because e.g. > NSTextFieldCell subclasses get drawn & redrawn quite a lot, so on > slower systems this might have been a problem ... If you were e.g. rendering something huge with an NSShadow

[iPhone] Animate tableView reloadData

2009-12-11 Thread Philip Vallone
Hi List, I have a table that gets reloaded when a user presses a button. Is it possible to animate reloadData and if so can you point me in the right direction? Thanks Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: [iPhone] Animate tableView reloadData

2009-12-11 Thread Luke the Hiesterman
There's a set of methods in UITableView for animated table updates. All the insert/delete/road calls should be within a beginUpdates/ endUpdates block. - (void)beginUpdates; // allow multiple insert/delete of rows and sections to be animated simultaneously. Nestable - (void)endUpdates;

Re: Binding an Array of Dictionaries

2009-12-11 Thread Keary Suska
On Dec 11, 2009, at 12:45 AM, Gerriet M. Denkmann wrote: > I have a window with an NSTableView which is bound to an NSArrayController > which has as content an NSMutableArray called "theArrayOfDictionaries". > Works fine. > > "theArrayOfDictionaries" contains NSMutableDictionaries. > So I added

Outing the poseAsClass: poseur

2009-12-11 Thread David Riggle
I still get reports of this crash: #8 0x968b411d +[%NSToolbarView _findFirstKeyViewInDirection:forKeyLoopGroupingView:] (see http://lists.apple.com/archives/cocoa-dev/2009/Aug/msg01974.html) I would like to know what hack is responsible. Is there a way to find the name of the application that

NSSavePanel crash!

2009-12-11 Thread Half Activist
Hello All, I'm developping a document-based application that up to today could read two document types and write one of the two. So one type was set as an editor the other one as viewer in the Info.plist. All the save/open panel stuff is the plain AppKit behavior and I h

Re: Problem with missing symbol

2009-12-11 Thread Emmanuel Pinault
On Dec 10, 2009, at 2:45 PM, Lee Ann Rucker wrote: > > On Dec 10, 2009, at 1:24 PM, Emmanuel Pinault wrote: > >> >>> >>> Have you tried using [NSStatusItem setView:]? >>> >> >> >> setView is for custom view.. Because if I dont do a setView, the view >> Method return nil so far. And look

Re: Outing the poseAsClass: poseur

2009-12-11 Thread Mike Abdullah
Set a breakpoint on +[NSObject poseAsClass:] and launch your app perhaps? On 11 Dec 2009, at 16:47, David Riggle wrote: > I still get reports of this crash: > > #8 0x968b411d +[%NSToolbarView > _findFirstKeyViewInDirection:forKeyLoopGroupingView:] > > (see http://lists.apple.com/archives/cocoa

Screwy Binding/KVO

2009-12-11 Thread Steven Degutis
Hi, Sorry if this has been posted before; I did a quick scour but might not have used the right keywords (this issue isn't very general). Basically I'm noticing that when I expect KVO observations to be triggered, they aren't. Most likely this is due to my misunderstanding, but I'd like to post a

NSProgress Indicator

2009-12-11 Thread Arun
Hi All, The standard progress indicator in IB comes with Blue color fill. Is it possible to change the color to green? Thanks Arun KA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: NSProgress Indicator

2009-12-11 Thread Kyle Sluder
On Fri, Dec 11, 2009 at 10:22 AM, Arun wrote: > The standard progress indicator in IB comes with Blue color fill. > Is it possible to change the color to green? No. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not po

Re: NSProgress Indicator

2009-12-11 Thread Mike Abdullah
Not easily. Why do you want to do this? Are you perhaps looking for NSLevelIndicator? On 11 Dec 2009, at 18:22, Arun wrote: > Hi All, > > The standard progress indicator in IB comes with Blue color fill. > Is it possible to change the color to green? > > Thanks > Arun KA >

My app not in services menu, but appears to be registered

2009-12-11 Thread John Velman
I'm at my wits end trying to add a service to my app, with no luck getting it into the services menu of anything. It appears to have the right info in both the lsregister dump, and the ~/Library/Preferences/pbs. ... .plist file. (I've included these below). Could it be that something is wrong

Relation Between a View's Bounds and its CTM

2009-12-11 Thread Gordon Apple
Are there any good way to get/set a view's transform? (No, not using CALayers.) It is possible to flip a view's horizontal and/or vertical orientation by setting negative values for the bounds size. However, a request for the view's bounds always returns a validated rect, giving no indication of

UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Eric E. Dolecki
I am using a UIDatePicker in landscape - and I have noticed on the device (in Simulator it works fine) that the animation of the numerals into position can be seen floating and delayed into position. What I mean is that if I scroll a column down, I see a number fly up from the bottom to it's posit

altering width of NSComboBox's popup

2009-12-11 Thread Eric Slosser
I'd like to display a NSComboBox that is narrower than the widest of strings in the list of items, but have the popup list be wide enough so the whole string can be read. But I haven't found a way to have the 'non-tracking' width to be different from the tracking width. I've tried altering the

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Eric E. Dolecki
I take it back - it does not work in the Simulator either. I am calling up the view from the AppDelegate like this: EditAlarmViewController *myEditView = [[EditAlarmViewController alloc] initWithNibName:@"EditAlarmViewController" bundle:[NSBundle mainBundle]]; //TODO: get these to come out of th

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Alex Kac
I found that this control works fine in Iphone OS 3.0 and higher in landscape - but only if its initialized when in landscape mode (i.e. status bar and all). If you rotate it or its rotated, it won’t work. On Dec 11, 2009, at 2:38 PM, Eric E. Dolecki wrote: > I take it back - it does not work i

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Eric E. Dolecki
What do you mean initialized when in landscape mode? (I'm still green here). How can I make sure that happens? On Fri, Dec 11, 2009 at 3:41 PM, Alex Kac wrote: > I found that this control works fine in Iphone OS 3.0 and higher in > landscape - but only if its initialized when in landscape mode (

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Eric E. Dolecki
I placed the picker using IB if that matters - does this means it will init before the app goes to landscape? Do I need viewDidLoad and create the picker by hand, and then rotate it? On Fri, Dec 11, 2009 at 3:55 PM, Eric E. Dolecki wrote: > What do you mean initialized when in landscape mode? (I

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Alex Kac
Don’t use IB if you’re going to use landscape UIPicker. On Dec 11, 2009, at 2:58 PM, Eric E. Dolecki wrote: > I placed the picker using IB if that matters - does this means it will init > before the app goes to landscape? Do I need viewDidLoad and create the picker > by hand, and then rotate it

Finding a printer on bonjour

2009-12-11 Thread Development
I have printer sharing turned on on my computer. I am trying to discover the two shared printers with bonjour and am using the following line of code for it: [serviceBrowser searchForServicesOfType:@"_printer._http._tcp." inDomain:@""]; I know that the printers are shared so why are they not sh

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Alex Kac
Well, we simply create the control via code on loadView and then when orientation changes, we release it and recreate it. This way its always initialized properly for that orientation. - (void)createRelativeTriggerTimeSpanPicker { timeSpanPicker = [[UITimeSpanPicker alloc] initWithFrame:

Re: Screwy Binding/KVO

2009-12-11 Thread Quincey Morris
On Dec 11, 2009, at 09:10, Steven Degutis wrote: [reformatted to be less annoying] > // when this is called, the KVO in SDObject is triggered with an empty array > > [object bind:@"content" toObject:controller2 withKeyPath:@"arrangedObjects" > options:nil]; > NSLog(@"mark 2"); Yeah, well, at t

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Eric E. Dolecki
That's brilliant - thank you very much. Works great! On Fri, Dec 11, 2009 at 4:01 PM, Alex Kac wrote: > Well, we simply create the control via code on loadView and then when > orientation changes, we release it and recreate it. This way its always > initialized properly for that orientation. > >

Re: My app not in services menu, but appears to be registered

2009-12-11 Thread John Velman
Forgot to note that I'm still working in OS X 10.5.8, XCode 3.1.4. On Fri, Dec 11, 2009 at 11:06:38AM -0800, John Velman wrote: > > I'm at my wits end trying to add a service to my app, with no luck > getting it into the services menu of anything. > __

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread Eric E. Dolecki
That works great. I have another view that does some animation, and I forgot to close the animation block with a commitAnimations, and the view with the picker in it animates in too - seems like an unclosed animation block anywhere in such a case can screw up a view with a picker in landscape in it

Printing to a ipp printer discovered with bonjour

2009-12-11 Thread Development
Ok, well in my previous message I did not realize I was suppose to search for ipp not printer. when I browse and find ipp printers I am taken to the cups reference page. So I am wondering if there is a fairly basic guide to printing to a cups printer from cocoa. or over bonjour? Thanks

Re: NSSavePanel crash!

2009-12-11 Thread Corbin Dunn
On Dec 11, 2009, at 8:49 AM, Half Activist wrote: > Hello All, > > I'm developping a document-based application that up to today could > read two document types and write one of the two. > So one type was set as an editor the other one as viewer in the > Info.plist. > All the

Re: Outing the poseAsClass: poseur

2009-12-11 Thread Greg Parker
On Dec 11, 2009, at 8:47 AM, David Riggle wrote: > I still get reports of this crash: > > #8 0x968b411d +[%NSToolbarView > _findFirstKeyViewInDirection:forKeyLoopGroupingView:] > > (see http://lists.apple.com/archives/cocoa-dev/2009/Aug/msg01974.html) > > I would like to know what hack is respo

Re: Printing to a ipp printer discovered with bonjour

2009-12-11 Thread David Duncan
On Dec 11, 2009, at 1:58 PM, Development wrote: > Ok, well in my previous message I did not realize I was suppose to search for > ipp not printer. when I browse and find ipp printers I am taken to the cups > reference page. So I am wondering if there is a fairly basic guide to > printing to a c

Detaching a thread to save a file?

2009-12-11 Thread Keith Blount
Hi, Apologies for a rather basic question, but I’ve searched my Cocoa books and the web and despite lots of information on threads I’m still a little confused about how best to do what I want to do ensuring that I’m not opening myself up to crashes (possibly just nervousness owing to not using

Re: Printing to a ipp printer discovered with bonjour

2009-12-11 Thread Development
I'm trying to figure out how to print using IPP from an iphone. I'm able to get bits of info from google but nothing so far has been overly clear. I'm still trying to figure it all out. On Dec 11, 2009, at 3:07 PM, David Duncan wrote: > On Dec 11, 2009, at 1:58 PM, Development wrote: > >> Ok,

Re: NSProgress Indicator

2009-12-11 Thread douglas welton
Have you tried making the view layer-back and applying a CIHueAdjust filter to the layer? On Dec 11, 2009, at 1:59 PM, Mike Abdullah wrote: > Not easily. Why do you want to do this? Are you perhaps looking for > NSLevelIndicator? > > On 11 Dec 2009, at 18:22, Arun wrote: > >> Hi All, >> >>

Re: Detaching a thread to save a file?

2009-12-11 Thread Ken Thomases
On Dec 11, 2009, at 4:43 PM, Keith Blount wrote: The problem is that if the project grows in size, saving this dictionary to disk can take two or three seconds. For this reason, I would like to save it in the background, so it doesn’t hold up the interface. According to Scott Anguish’s Coco

iPhone voice synthesis

2009-12-11 Thread Charlie Dickman
Is there a way to do voice synthesis on the iPhone/iTouch like there is in OS X Cocoa using a [NS}voiceSynthesizer? Charlie Dickman 3tothe...@comcast.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: iPhone voice synthesis

2009-12-11 Thread David Duncan
On Dec 11, 2009, at 3:48 PM, Charlie Dickman wrote: > Is there a way to do voice synthesis on the iPhone/iTouch like there is in OS > X Cocoa using a [NS}voiceSynthesizer? iPhone OS does not provide support for doing this. If you would like it, I would recommend filing a bug report asking for

Re: Additional action when a view's value changes (Cocoa Bindings)

2009-12-11 Thread Graham Cox
On 11/12/2009, at 9:35 PM, Christian Ziegler wrote: >> The target controller should be the controller with these outlets. It's OK >> to have multiple tiers of controllers, but make sure each one has a clearly >> defined role. Sounds like you have not defined a clear role for each >> controller

Problem with mouse events in a custom NSControl subclass

2009-12-11 Thread Stephen Blinkhorn
Hello all, Reasonably descriptive title. I'm writing the Cocoa GUI for an audio unit plugin and I've run into a problem. In one host app I'm not receiving mouse events in my custom sliders/buttons etc. My drop down menus work fine but they are subclasses of NSPopUpMenu and NSPopUpMenuC

Bluetooth failure

2009-12-11 Thread Development
I have a Gen 2 iPod and the simulator trying to share data over bluetooth I am using the standard GK routines. However the iPod cannot see the simulator and the simulator, though it can see the ipod, as soon as I try to connect I get the error in the connect screen :"Connection Lost" when i log

Re: NSBezierPath vs. NSImage

2009-12-11 Thread Rob Keniger
On 11/12/2009, at 8:59 PM, Alastair Houghton wrote: > Anyway, the thing to do is to draw what you want, and then *if* it's going > too slowly there are various things you can do to speed it up (like caching > any expensive rendering in an NSImage, doing reduced or simplified rendering > during

Sqlite3 R*Tree module and the iPhone

2009-12-11 Thread Jeff Heard
I was wondering if iPhone OS 3.0 or better had the R-Tree module compiled into the sqlite3 framework that ships on the device? I've got 19,500 or so annotations and adding them all at once to the MKMapView object I have seems at the very least insane... -- Jeff_

Re: Detaching a thread to save a file?

2009-12-11 Thread Keith Blount
Hi Ken, Many thanks for your reply, much appreciated. And thanks for pointing out the potential pitfalls. I most likely would have passed it the NSMutableDictionary ivar had you not pointed this out. So, if I understand correctly, I could do something as simple as this: // Presumably as the ob

Re: Detaching a thread to save a file?

2009-12-11 Thread Keith Blount
Oops, sorry, forgot to ask: what happens if the user hits save again while the separate thread is already saving the search indexes to disk? So, there is one save which detaches a thread and starts to write the data to disk, then seconds later the user instigates another save that causes the dat

Re: Detaching a thread to save a file?

2009-12-11 Thread Graham Cox
On 12/12/2009, at 12:37 PM, Keith Blount wrote: > NSDictionary *searchIndexesDeepCopy = [NSKeyedUnarchiver > unarchiveObjectWithData:[NSKeyedArchiver > archivedDataWithRootObject:searchIndexes]]; > > [NSThread detachNewThreadSelector:@selector(saveSearchIndexes:) toTarget:self > withObject:se

Re: UIDatePicker in landscape - displaying items moving into position weirdness

2009-12-11 Thread mmalc Crawford
On Dec 11, 2009, at 1:06 pm, Alex Kac wrote: > if (timeSpanPicker) > { > //remove it > [timeSpanPicker removeFromSuperview]; > [timeSpanPicker release]; > > //now add it again > [self createRelativeTr

[iPhone] Track for iPhone App Re-Install

2009-12-11 Thread Tharindu Madushanka
Hi, Is there a way to track if an iPhone application is re-installed locally with the SDK.. without having a server ? Kind Regards, Tharindu Madushanka tharindufit.wordpress.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

water effect on iPhone with touch methods

2009-12-11 Thread Chunk 1978
i haven't yet started to study OpenGL, but i just came across a java sample online that creates a water effect, and the sample code was surprisingly quite small. here is the java example: http://www.neilwallis.com/java/water.html essentially, i'd like to replicate this, or something similar, usi

Re: Detaching a thread to save a file?

2009-12-11 Thread Ken Thomases
On Dec 11, 2009, at 7:43 PM, Keith Blount wrote: Oops, sorry, forgot to ask: what happens if the user hits save again while the separate thread is already saving the search indexes to disk? So, there is one save which detaches a thread and starts to write the data to disk, then seconds late

Re: Detaching a thread to save a file?

2009-12-11 Thread Jim Correia
On Fri, Dec 11, 2009 at 8:43 PM, Keith Blount wrote: > Oops, sorry, forgot to ask: what happens if the user hits save again while > the separate > thread is already saving the search indexes to disk? Also consider what happens when the user hits save, then immediately quits before your file wri

Hang Initializing App

2009-12-11 Thread Joe Programmer
I made a similar post to the Xcode list originally, but it was suggested that I redirect it to the Cocoa list. Here it is: I'm working with a Cocoa app compiling with gcc 4.0 in Xcode 3.2.1. Both the debug and the release builds launch fine from the Finder, but the app does not launch through

NSNumber stringValue

2009-12-11 Thread RedleX Support
Hi, I need to output a double into a text file and then read it back with 100% accuracy, will using NSNumber stringValue and then using NSString doubleValue give me good results? For example, if I write the following: double a,b; a=some number; b=[[[NSNumber numberWithDouble:a] stringVal

custom view to display an analouge signal

2009-12-11 Thread James Sheridan
Hi All, I'm looking for a custom view to display an analogue signal similar to garage band or instruments - does anyone know of any open source efforts in this area or even something like an IBplugin I could purchase? Cheers - james ___ Cocoa-dev ma

Limiting the area of an NSShadow

2009-12-11 Thread Cocoa Dev
Hello, I'm trying to mimic the background of Time Machine's large On/Off switch ( http://zcr.me/l/n2 ) by drawing it via code. This is my code so far: cellFrame.size.height = 27; NSBezierPath *border = [NSBezierPath bezierPathWithRoundedRect:cellFrame > xRadius:5.0 yRadius:5.0]; [border setLine

NSURL Name of a File: Content nor Attribute, how to check for modification?

2009-12-11 Thread martin halter
hello list As I change the name of a File in Finder, neither NSURLContentModificationDateKey nor NSURLAttributeModificationDateKey do change. I have an internal list of Files as NSURLs in my application and watch the directory with FSEvents. I properly receive the notification that something

[COCOA] notification of enter/focus event?

2009-12-11 Thread Paxton Sanders
Sorry if this is a bit too basic, but... I want to know when the user exits edit fields, so I can check values and provide immediate feedback. I'm using - (void)controlTextDidEndEditing:(NSNotification *)aNotification and it works. I also need to know when a user enters an edit field, so I can

Re: NSNumber stringValue

2009-12-11 Thread Bryan Henry
You should not compare floating point numbers for equality in most cases. This is true of any language on any platform. See http://www.cygnus-software.com/papers/comparingfloats/Comparing%20floating%20point%20numbers.htm - Bryan On Dec 10, 2009, at 10:02:23 PM, RedleX Support wrote: > Hi, >

Re: Hang Initializing App

2009-12-11 Thread Henry McGilton (Boulevardier)
On Dec 10, 2009, at 4:51 PM, Joe Programmer wrote: > I made a similar post to the Xcode list originally, but it was suggested that > I redirect it to the Cocoa list. Here it is: > > I'm working with a Cocoa app compiling with gcc 4.0 in Xcode 3.2.1. Both the > debug and the release builds la

Re: Binding an Array of Dictionaries

2009-12-11 Thread Gerriet M. Denkmann
On 11 Dec 2009, at 22:54, Keary Suska wrote: > On Dec 11, 2009, at 12:45 AM, Gerriet M. Denkmann wrote: > >> I have a window with an NSTableView which is bound to an NSArrayController >> which has as content an NSMutableArray called "theArrayOfDictionaries". >> Works fine. >> >> "theArrayOfDic

-[NSWorkspace absolutePathForAppBundleWithIdentifier:] and the Trash

2009-12-11 Thread Jeff Johnson
Could someone please clarify the behavior of -[NSWorkspace absolutePathForAppBundleWithIdentifier:] when an application is in the Trash? In almost all of my testing, the method returns nil when an app is in the Trash. However, one time in the debugger (on Mac OS X 10.5.8) I caught it retu

Re: [COCOA] notification of enter/focus event?

2009-12-11 Thread Henry McGilton (Boulevardier)
On Dec 11, 2009, at 10:23 AM, Paxton Sanders wrote: > Sorry if this is a bit too basic, but... > > I want to know when the user exits edit fields, so I can check values and > provide immediate feedback. I'm using > - (void)controlTextDidEndEditing:(NSNotification *)aNotification > and it works

Re: NSNumber stringValue

2009-12-11 Thread Andrew Farmer
On 11 Dec 2009, at 21:14, Bryan Henry wrote: > You should not compare floating point numbers for equality in most cases. > This is true of any language on any platform. Indeed, some floating-point numbers (such as the one represented by the integer 0x7fc0) will compare as not equal to themse

Re: NSURL Name of a File: Content nor Attribute, how to check for modification?

2009-12-11 Thread Ken Thomases
On Dec 11, 2009, at 4:56 AM, martin halter wrote: As I change the name of a File in Finder, neither NSURLContentModificationDateKey nor NSURLAttributeModificationDateKey do change. I have an internal list of Files as NSURLs in my application and watch the directory with FSEvents. I proper

Re: Hang Initializing App

2009-12-11 Thread Ken Thomases
On Dec 10, 2009, at 6:51 PM, Joe Programmer wrote: #0 0x92fad4e6 in objc_exception_throw #1 0x92a0790b in -[NSObject(NSObject) doesNotRecognizeSelector:] #2 0x92962db6 in ___forwarding___ #3 0x92962982 in __forwarding_prep_0___ #4 0x9291bc53 in CFStringGetCString #5

NSUserDefaults Croaks on Dictionary Containing NSNumber as Key

2009-12-11 Thread Jerry Krinock
Sorry for the wonky subject. It's easier to explain in code: NSNumber* innerKey = [NSNumber numberWithInt:0] ; NSDictionary* dic = [NSDictionary dictionaryWithObject:@"Hello" forKey:innerKey] ; [[NSUserDefaults standardUserDefaults] setObject:dic

Re: NSUserDefaults Croaks on Dictionary Containing NSNumber as Key

2009-12-11 Thread Clark Cox
On Fri, Dec 11, 2009 at 11:10 PM, Jerry Krinock wrote: > Sorry for the wonky subject.  It's easier to explain in code: > > NSNumber* innerKey = [NSNumber numberWithInt:0] ; > NSDictionary* dic = [NSDictionary dictionaryWithObject:@"Hello" >                                                forKey:inn