Re: Interface Builder input panel fields not updated when OK button clicked

2010-04-09 Thread Mike Abdullah
Are you using bindings for this field? If so, your action method should send -commitEditing… to the object controller. Only then actually close the sheet if you get back YES. On 9 Apr 2010, at 06:22, Ben Golding wrote: > > On 09/04/2010, at 15:08, Jon Pugh wrote: > >> At 3:02 PM +1000 4/9/10,

Re: CFRunLoopStop exception

2010-04-09 Thread vincent habchi
Le 9 avr. 2010 à 08:08, Greg Parker a écrit : > In this circumstance, mach_msg() will block if the queue is full, and either > succeed later or time out. Neither of those paths should end up at HALT. > (mach_msg() may do other things in other circumstances.) > > Presumably mach_msg() returned s

Re: CFRunLoopStop exception

2010-04-09 Thread Steve Sisak
At 10:03 PM +0200 4/8/10, vincent habchi wrote: I was running quite an intensive test on creating/freeing threads running RunLoops, and I got a rather unexpected crash while executing CFRunLoopStop (): At 10:07 PM +0200 4/8/10, vincent habchi wrote: Well, I forgot to mention that each thread i

Re: CSS style string to NSAttributedString attributes conversion

2010-04-09 Thread jonat...@mugginsoft.com
On 8 Apr 2010, at 17:19, Jens Alfke wrote: > > I'm not aware of anything that does this. > Are you talking about parsing entire CSS files, or just a single "property: > value;" rule? > Even the simple case isn't that simple; CSS can be pretty complex. And most > of the attributes don't map clea

Re: NSTableView Key Value Observing performance pickle

2010-04-09 Thread jonat...@mugginsoft.com
I get myself into these pickles all the time with bindings and complex KVO. All is well until you add just one more piece and down it goes. The only solution IMHO is to disable your KVO observations piecemeal and find which interaction is kicking off the storm. I would start by looking at selecti

Re: CFRunLoopStop exception

2010-04-09 Thread vincent habchi
Steve, > Pulling these out, it may be time to look at WAYRTTD. > > Creating/destroying lots of threads to render tiles seems massively > inefficient for lots of reasons and Mac OS X has much better mechanisms for > this. > > Depending on what minimum OS requirements you might get much better r

Re: Single-click words in NSTableView / NSTextFieldCell

2010-04-09 Thread Tony P
Thanks for that Corbin. That's fine and dandy, except I'm still stuck in identifying the "link" word. There are multiple "link" words or phrases in each cell, so I don't know which one has been hit without some kind of characterIndexForPoint functionality. Or perhaps I can't see the wood fo

Re: Interface Builder input panel fields not updated when OK button clicked

2010-04-09 Thread Dave Fernandes
If you read the docs for -[NSWindow endEditingFor:], it explains the correct way to do this. On 2010-04-09, at 1:22 AM, Ben Golding wrote: > > On 09/04/2010, at 15:08, Jon Pugh wrote: > >> At 3:02 PM +1000 4/9/10, Ben Golding wrote: >>> I can't seem to find a way of ending editing on all the f

Using a SOAP Web Service from iPhone

2010-04-09 Thread Joanna Carter
Hi folks Well, I've just spent the last few days, getting to grips with consuming a web service. I though I would try things out in an OS X app first, then move to the iPhone, which is the end target. So, I decided to use WSMakeStubs on the WSDL - it did a reasonable job, apart from one or tw

NSPipe (NSFileHandle) writedata limit?

2010-04-09 Thread McLaughlin, Michael P.
In a Leopard app, I declare an NSPipe with an NSFileHandle attached to it for writing. I have found, by trial and error, that I cannot write more than 65,536 bytes to this pipe which goes to an NSTask. Below that limit works fine. I thought that the limit was supposed to be the unsigned long max

Re: Using a SOAP Web Service from iPhone

2010-04-09 Thread Dru Satori
This is an 'iffy' subject in general. I can tell you that my approach is not what it appears that most have done. The first problem for me, most of the WebService is deal with are written in .NET (C#) and as such the WSMakeStubs doesn't actually work (if you have parameters). The second, as

Re: NSPipe (NSFileHandle) writedata limit?

2010-04-09 Thread Dave Keck
> I have found, by trial and error, that I cannot write more than 65,536 bytes > to this pipe which goes to an NSTask.  Below that limit works fine. > > I thought that the limit was supposed to be the unsigned long max.  Is this > not correct? As long as some process is reading data from the pipe

Re: NSPipe (NSFileHandle) writedata limit?

2010-04-09 Thread Dave Keck
After re-reading your message, I think I misunderstood your problem. Nonetheless, a quick test program doesn't run into the mentioned 65k limit (at least on my machine): http://pastie.org/911738 Still though, what error are you getting? ___ Cocoa-d

Re: Using a SOAP Web Service from iPhone

2010-04-09 Thread Dru Satori
In this particular case, they do not, but you are correct, it should filter / encode those values. As I said in the mail, it hasn't been reviewed that heavily yet. It probably leaks like a sieve too :-) Andy 'Dru' Satori On Apr 9, 2010, at 12:59 PM, Jens Alfke wrote: > > On Apr 9, 2010, at

Re: Using a SOAP Web Service from iPhone

2010-04-09 Thread Mark Wade
This may be helpful: http://code.google.com/p/kernseife/ On Apr 9, 2010, at 11:00 AM, Joanna Carter wrote: Hi folks Well, I've just spent the last few days, getting to grips with consuming a web service. I though I would try things out in an OS X app first, then move to the iPhone, whi

Re: NSPipe (NSFileHandle) writedata limit?

2010-04-09 Thread McLaughlin, Michael P.
I am not getting an error; it just hangs. *** code *** @interface Subtask : NSObject { NSTask *aTask; NSPipe *inPipe, *outPipe; NSFileHandle *sendEnd, *readEnd; NSString *myID; } -(void)sendData:(void*)data numBytes:(NSUInteger)sz taskTag:(NSString*)tag; ... @end // in implementatio

NSURLEffectiveIconKey with bookmark data

2010-04-09 Thread Noah Desch
My application displays a potentially long list of items in an NSTableView. One of the columns represents files on the user's hard drive. This column is driven by the new bookmark data from the NSURL class. The bookmark data does not appear to be able to save effective icon data, however other

Re: How do I compare two NSDates using NSPredicate & Core Data

2010-04-09 Thread Ashley Clark
On Apr 5, 2010, at 7:02 PM, Sean McBride wrote: > On Sun, 4 Apr 2010 23:15:16 -0400, Michael A. Crawford said: > >> Thus far I've gotten away with using -predicateWithFormat and scalar >> values. I now need to compare a couple of NSDate instances but am not >> sure how to code it up with NSPredi

(no subject)

2010-04-09 Thread §
http://MyrandaSporleder6772.co.cc ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Sub

Re: How do I compare two NSDates using NSPredicate & Core Data

2010-04-09 Thread Sean McBride
On Fri, 9 Apr 2010 12:52:21 -0500, Ashley Clark said: >>> Thus far I've gotten away with using -predicateWithFormat and scalar >>> values. I now need to compare a couple of NSDate instances but am not >>> sure how to code it up with NSPredicate. Consider me a 'visual' learner. >> >> I'm pretty s

Re: NSPipe (NSFileHandle) writedata limit?

2010-04-09 Thread Dave Keck
> I am not getting an error; it just hangs. This is the classic sign that the pipe's buffer is full and that your consuming process isn't reading the available data from the pipe. If you attach to the producing process, I would expect its stack trace to look like: #0 0x95030c7e in write$UNIX2003

Re: NSPipe (NSFileHandle) writedata limit?

2010-04-09 Thread McLaughlin, Michael P.
I would have bet on #2 as well but everything is typed NSUInteger (same as the docs) and, when I NSLog the relevant sizes, sending and receiving, they all come back as 4 bytes. I do not know how to "attach" to the producing process. When NSFileHandle writeData takes off, the Xcode debugger goe

Selecting rows in NSOutlineView from menuForEvent:?

2010-04-09 Thread Laurent Daudelin
I wrote a subclass of NSOutlineView to handle menuForEvent: so that I can provide my own menu of items that can be performed. It works well but I did notice that in all other outline or table views, a right-click will highlight the rows that were right-click with an outline and change the view s

Re: Selecting rows in NSOutlineView from menuForEvent:?

2010-04-09 Thread Nick Zitzmann
On Apr 9, 2010, at 2:46 PM, Laurent Daudelin wrote: > I wrote a subclass of NSOutlineView to handle menuForEvent: so that I can > provide my own menu of items that can be performed. It works well but I did > notice that in all other outline or table views, a right-click will highlight > the ro

Re: Selecting rows in NSOutlineView from menuForEvent:?

2010-04-09 Thread Laurent Daudelin
On Apr 9, 2010, at 14:10, Nick Zitzmann wrote: > > On Apr 9, 2010, at 2:46 PM, Laurent Daudelin wrote: > >> I wrote a subclass of NSOutlineView to handle menuForEvent: so that I can >> provide my own menu of items that can be performed. It works well but I did >> notice that in all other outli

Re: Selecting rows in NSOutlineView from menuForEvent:?

2010-04-09 Thread Nick Zitzmann
On Apr 9, 2010, at 3:42 PM, Laurent Daudelin wrote: > However, the selection is the standard highlight, not the outline I see in > any other table views in other Apple applications. I think the "drop highlighting" thing a few Apple apps do is accomplished through a private API. I wouldn't worr

Re: Selecting rows in NSOutlineView from menuForEvent:?

2010-04-09 Thread Laurent Daudelin
On Apr 9, 2010, at 15:17, Nick Zitzmann wrote: > > On Apr 9, 2010, at 3:42 PM, Laurent Daudelin wrote: > >> However, the selection is the standard highlight, not the outline I see in >> any other table views in other Apple applications. > > I think the "drop highlighting" thing a few Apple app

Connect action to NSMatrix

2010-04-09 Thread koko
I guess I could do this in code but I am wondering why I cannot connect an action to a NSMatrix in IB? I have done this before with an NSMAtrix of radio buttons. This is an NSMatirx of check boxes. When I drag from the action in the HUD to the NSMAtrix all that cam be selected are the ch

Re: NSPipe (NSFileHandle) writedata limit?

2010-04-09 Thread Greg Guerin
McLaughlin, Michael P wrote: aTask = [NSTask new]; ... myID = [NSString stringWithFormat:@"%d ", ident]; inPipe = [NSPipe pipe]; // i.e., input for subtask outPipe = [NSPipe pipe]; If you aren't concurrently reading the output pipe from the child process, then you can end up