Re: Problems with NSPathControl

2010-07-13 Thread Kyle Sluder
On Mon, Jul 12, 2010 at 10:34 PM, Scott Anguish sc...@cocoadoc.com wrote: On Jul 12, 2010, at 6:13 PM, Kyle Sluder wrote: On Mon, Jul 12, 2010 at 2:12 PM, Kevin Perry kpe...@apple.com wrote: Yeah, this is an unfortunate bug that we didn't catch until Snow Leopard. Good to know. Might we be

NSURLConnection and authenticating against OpenID

2010-07-13 Thread Laurent Daudelin
I'm using an NSURLConnection to extract information from a website. The website used to have a simple authentication process based on cookies. Now, they switched to a form of private OpenID. I read a bit about this open-source protocol and I'm wondering if it's possible to respond to an

Testing background task expiration; lowering backgroundTimeRemaining?

2010-07-13 Thread Manfred Schwind
Hi, is there some way to lower UIApplication's backgroundTimeRemaining property for testing purposes? I want to test the correct behaviour of an App doing some lengthy processing in the background when the background time expires, but I always have to wait 10 Minutes for the timeout ... that's

setValue:forKey: and invocation forwarding

2010-07-13 Thread Graham Cox
It appears that calling -setValue:forKey: on an object bypasses or ignores any invocation forwarding it has set up, unless I'm missing some obvious error. I have an object that acts as a wrapper for another object, and so that the wrapper can, under some circumstances, act as the thing it is

Re: NSViewController and key value coding

2010-07-13 Thread Mike Abdullah
Sounds to me like you're looking for Cocoa Bindings… On 13 Jul 2010, at 00:40, Andrew James wrote: All, I've been writing way to much code to populate an NSPopUpButton with an array that can change at any moment. Due to that, I'd rather use Cocoa's Key Value Coding technology. I've

Re: setValue:forKey: and invocation forwarding

2010-07-13 Thread Mike Abdullah
Sounds to me you subclassed the wrong class. KVC is provided by NSObject. If you subclass NSProxy, the -setValue:forKey: message is not implemented, so will get forwarded on like others. On 13 Jul 2010, at 13:53, Graham Cox wrote: It appears that calling -setValue:forKey: on an object

Re: setValue:forKey: and invocation forwarding

2010-07-13 Thread glenn andreas
On Jul 13, 2010, at 7:53 AM, Graham Cox wrote: It appears that calling -setValue:forKey: on an object bypasses or ignores any invocation forwarding it has set up, unless I'm missing some obvious error. I have an object that acts as a wrapper for another object, and so that the wrapper

Re: setValue:forKey: and invocation forwarding

2010-07-13 Thread Graham Cox
On 13/07/2010, at 11:56 PM, glenn andreas wrote: I'd just override valueForKey: and setValue:forKey: in your class to handle forwarding those to your wrapped object. Hi Glenn, That's what I did actually, seems a much simpler approach anyway. I was just curious as to whether this apparent

Re: Testing background task expiration; lowering backgroundTimeRemaining?

2010-07-13 Thread Fritz Anderson
On 13 Jul 2010, at 2:51 AM, Manfred Schwind wrote: is there some way to lower UIApplication's backgroundTimeRemaining property for testing purposes? I want to test the correct behaviour of an App doing some lengthy processing in the background when the background time expires, but I always

Re: setValue:forKey: and invocation forwarding

2010-07-13 Thread Fritz Anderson
On 13 Jul 2010, at 7:53 AM, Graham Cox wrote: It appears that calling -setValue:forKey: on an object bypasses or ignores any invocation forwarding it has set up, unless I'm missing some obvious error. Aren't valueForUndefinedKey: and setValue:forUndefinedKey: provided for exactly this

[Q] Is this a bug in MPMoviePlayerController? Then how to work around?

2010-07-13 Thread JongAm Park
Hello, all. My acquaintance told me that he found a strange problem while using MPMoviePlayerController. According to him, from second play of a movie file located on a server, a server said that there was a cached movie clip on a client and guided to use the locally cached one, but on the

Sort ordering and custom cells

2010-07-13 Thread Gideon King
Hi, I have an NSTableView bound to an NSArrayController, which gets its data from an NSMutableArray of objects. One column of my table is set up as a button cell where I use tableView:dataCellForTableColumn:row: to return a different button cell (or sometimes nil) depending on the data for

NSURLConnection and authenticating against OpenID

2010-07-13 Thread Laurent Daudelin
I guess everybody was sleeping yesterday when I sent this so, I'll resend :-) I'm using an NSURLConnection to extract information from a website. The website used to have a simple authentication process based on cookies. Now, they switched to a form of private OpenID. I read a bit about this

How to scroll images with NSImageView

2010-07-13 Thread Vincenzo Morgante
Hi,I'm a newbie and I should create a window with an image (resource.png) from resource folder of my XCode project. I realized that I should use NSImageView and embed it in a scroll view, but the image is not entirely showed because too large: why are the scrollers not shown? Thanks a lot!

find out all domains in network

2010-07-13 Thread Meet Bhatha
Hello, I am trying to find out all the intranet domains available in our network. I have tried using NSNetServiceBrowser and DNSServiceEnumerateDomains but both are returning only 'local.' and no other domains. I also tried the same using terminal with command scutill --dns and dig , but

Re: NSTextView becomes temporarily unresponsive

2010-07-13 Thread Ross Carter
On Jul 12, 2010, at 6:01 PM, David Swofford wrote: I'm beginning the conversion of a scientific app from Carbon to Cocoa, and have run into a problem with NSTextView. FWIW, I have it embedded in an NSScrollView that is in turn included as an HICocoaView in a Carbon window (but I don't

NSPopUpButton Display Last Selected

2010-07-13 Thread Richard Somers
I have a programmatic NSPopUpButton used by a toolbar item. The pop-up list does not display the option that was last selected. The documentation says A pop-up list lets the user choose one option among several and generally displays the option that was last selected. How do I make the

Re: Testing background task expiration; lowering backgroundTimeRemaining?

2010-07-13 Thread Manfred Schwind
is there some way to lower UIApplication's backgroundTimeRemaining property for testing purposes? I want to test the correct behaviour of an App doing some lengthy processing in the background when the background time expires, but I always have to wait 10 Minutes for the timeout ... that's

Re: Sort ordering and custom cells

2010-07-13 Thread Keary Suska
On Jul 13, 2010, at 10:38 AM, Gideon King wrote: Hi, I have an NSTableView bound to an NSArrayController, which gets its data from an NSMutableArray of objects. One column of my table is set up as a button cell where I use tableView:dataCellForTableColumn:row: to return a different

Re: Deploying to an iPad

2010-07-13 Thread Christian Graus
when adding a file you should be asked if you would like it to be copied to the project's directory. this should be a checkbox in a dialog. have you tried this? That's what I did initially. The files themselves are not marked to be deployed with any target, but instead the folder they are in

Compiler bug?

2010-07-13 Thread Murat Konar
On Mac OS X 10.5.8, Xcode 3.1.3, I ran into some very strange behavior today trying to get at the extended attributes of files. In summary, for particular NSDictionary object, the behavior of -objectForKey: is different, depending on what other code runs. I have distilled the weirdness

coredata to-many relationships

2010-07-13 Thread Amy Gibbs
Hi, I've read pages and pages on the internet, and looked at the samples, and I've got Hillegass (2nd and 3rd editions) but I'm also a newbie, I'm trying to create a fairly simple app, and I'm a bit stuck with the to-many relationships. I've got 2 entities, Product and Kit. There will

Re: NSTextView becomes temporarily unresponsive

2010-07-13 Thread David Swofford
On Jul 13, 2010, at 2:38 PM, Ross Carter wrote: Could you post a test file somewhere? I just tried creating 187 pages of repeating ACCGACTACCGACT in TextEdit and it worked fine. Thanks for your interest! I've put an example at http://www.duke.edu/~dls36/nstextview_problem/ Remember, you

Re: NSTextView becomes temporarily unresponsive

2010-07-13 Thread David Swofford
On Jul 13, 2010, at 2:38 PM, Ross Carter wrote: Could you post a test file somewhere? I just tried creating 187 pages of repeating ACCGACTACCGACT in TextEdit and it worked fine. Ah... I see a difference, and it's very relevant. My example has a lot of hyphen characters in it (FWIW these

Self sign certificate creation

2010-07-13 Thread Apparao Mulpuri
Hi Folks, I am trying to generate a self sign certificate programmatically in my Cocoa app instead of using KeyChain Access application. I studied Apple provided sample codes and documentation and finally I haven't find any API for Self sign certificate creation.

Re: Compiler bug?

2010-07-13 Thread Manfred Schwind
NSDictionary* attrs = [[NSFileManager defaultManager] attributesOfItemAtPath: @/some/file/with/finder/comment error:NULL]; NSLog(@extAttrs:%@, [attrs objectForKey:@NSFileExtendedAttributes]); NSLog(@attrs:%@, attrs);

Re: Compiler bug?

2010-07-13 Thread Keary Suska
On Jul 13, 2010, at 2:44 PM, Murat Konar wrote: NSLog(@extAttrs:%@, [attrs objectForKey:@NSFileExtendedAttributes]); NSLog(@attrs:%@, attrs); NSLog(@extAttrs:%@, [attrs objectForKey:@NSFileExtendedAttributes]); 2010-07-13 13:14:30.648 FileManagerBug[9323:813] extAttrs:(null)

Drag pasteboard owner asked for data upon quitting

2010-07-13 Thread Philip White
Hello, In my app, in which I've implement various drag and drop mechanisms, I'm getting calls to -pasteboard:provideDataForType: upon quitting if I've performed dragging in my app. Of course, at such time, the drag being long over, my app doesn't have the data to supply. I've verified that the

Re: coredata to-many relationships

2010-07-13 Thread Keary Suska
On Jul 13, 2010, at 12:02 PM, Amy Gibbs wrote: I've read pages and pages on the internet, and looked at the samples, and I've got Hillegass (2nd and 3rd editions) but I'm also a newbie, I'm trying to create a fairly simple app, and I'm a bit stuck with the to-many relationships. I've

Re: Compiler bug?

2010-07-13 Thread Stephen J. Butler
On Tue, Jul 13, 2010 at 3:44 PM, Murat Konar mu...@pixar.com wrote: WTF? For those interested, you can download my test project from http://bugs.muratnkonar.com/FileManagerBug.zip If you NSLog(@class = %@, [attrs class]) you'll see what the problem is! The NSFileManager function doesn't

Re: Drag pasteboard owner asked for data upon quitting

2010-07-13 Thread Wim Lewis
On Jul 13, 2010, at 2:35 PM, Philip White wrote: I can understand why other pasteboards would ask for data upon quitting, but why would the drag pasteboard? I think it's just general pasteboard behavior: it has to be able to fulfill the promised datatypes if someone eventually asks for them.

Re: Sort ordering and custom cells

2010-07-13 Thread Gideon King
Thanks for trying to help, but I'm not sure the meaning of your answer, or what other information I could provide about the situation. Could you please clarify? Regards Gideon On 14/07/2010, at 5:29 AM, Keary Suska wrote: On Jul 13, 2010, at 10:38 AM, Gideon King wrote: Hi, I have an

Re: Compiler bug?

2010-07-13 Thread Murat Konar
Wow. That possibility seemed too outlandish to consider, but there it is. Curious though that asking the dictionary poser object to describe itself triggers the fetch (as does asking for all its keys, BTW), but actually asking for a value in the object doesn't. Thanks everybody. And be

Re: How to scroll images with NSImageView

2010-07-13 Thread Graham Cox
On 13/07/2010, at 9:43 PM, Vincenzo Morgante wrote: Hi,I'm a newbie and I should create a window with an image (resource.png) from resource folder of my XCode project. I realized that I should use NSImageView and embed it in a scroll view, but the image is not entirely showed because too

Re: NSTextView becomes temporarily unresponsive

2010-07-13 Thread Graham Cox
On 14/07/2010, at 5:24 AM, David Swofford wrote: Ah... I see a difference, and it's very relevant. My example has a lot of hyphen characters in it (FWIW these represent gaps in a sequence alignment and are typically common in these kinds of files). Your example was all letters. When I

Re: NSTextView becomes temporarily unresponsive

2010-07-13 Thread Ross Carter
I don't think it has anything to do with wrapping. AFAICT, layout is complete before the delay begins. I think this is a bug that you need to report. Maybe Doug or Aki can chime in with a solution. Here are some things that I found: 1. The problem is indeed the hyphen characters. Replace all

Re: NSTextView becomes temporarily unresponsive

2010-07-13 Thread David Swofford
On Jul 13, 2010, at 7:34 PM, Ross Carter wrote: I don't think it has anything to do with wrapping. AFAICT, layout is complete before the delay begins. I think this is a bug that you need to report. Maybe Doug or Aki can chime in with a solution. Thanks for a very informative reply. Here

Re: NSTextView becomes temporarily unresponsive

2010-07-13 Thread Aki Inoue
This is indeed an issue with the text system (trying to pre-heat the inserted text range for various text checking tasks). Please file a bug. 4. As a workaround, could you use underscore characters instead of hyphens? I tried using en dash and got the same result as hyphens. 5. May I

Re: Sort ordering and custom cells [fixed]

2010-07-13 Thread Gideon King
I found the problem. It was that I was looking in my source array using objectAtIndex:row, which is the actual row in the table as displayed. Seeing as my array is not sorted - it just has sort descriptors applied, I was getting the wrong value from my data array. I resolved the issue by

Re: NSURLConnection and authenticating against OpenID

2010-07-13 Thread Jerry Krinock
On 2010 Jul 13, at 09:40, Laurent Daudelin wrote: I guess everybody was sleeping yesterday when I sent this so, I'll resend :-) Well, although that was true in my case, it's also likely that no one knows. I've been trying to create a NSURLCredential with the user ID and password but that

[Moderator] Re: NSURLConnection and authenticating against OpenID

2010-07-13 Thread Scott Anguish
On Jul 13, 2010, at 12:40 PM, Laurent Daudelin wrote: I guess everybody was sleeping yesterday when I sent this so, I'll resend :-) I'm using an NSURLConnection to extract information from a website. The website used to have a simple authentication process based on cookies. Now, they

Re: NSURLConnection and authenticating against OpenID

2010-07-13 Thread Jerry Krinock
On 2010 Jul 13, at 18:25, Laurent Daudelin wrote: That's very useful and gives me at least a starting point One more thing I should have mentioned. After you get this thing working and have these passwords, tokens, or whatever, if you want to store them persistently, do it the Correct Way™