Saving NSDocument concurrently

2010-12-24 Thread Antonio Nunes
Hi, Since saving a document can be a lengthy process in one of my apps, I am switching it to a concurrent thread. My idea is to do the following: - (void)saveToURL:(NSURL *)absoluteURL ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation delegate:(id)delegate

UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
Hi, I've an UITableView with allowsSelection=NO; I was wondering whether it's possible to do allow selection of a specific row. Is there some way I can detect a touch of a row and simulate a select in software? Thanks in advance. Regards, Remco Poelstra

Re: UITableView with only 1 row selectable

2010-12-24 Thread Roland King
Why not do it the other way around. Set allowsSelection to YES and then implement the delegate method tableView:willSelectRowAtIndexPath: to return nil for any row you do NOT want selected (see the documentation). That seems to be apple's designed way to do this. On 24-Dec-2010, at 5:23 PM,

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
Hi, Thanks for your e-mail. I've considered this, but I think it's ugly that the rows flash blue momentarily. Is there a way to avoid that? Regards, Remco Op 24 dec 2010, om 11:01 heeft Roland King het volgende geschreven: Why not do it the other way around. Set allowsSelection to YES and

Re: UITableView with only 1 row selectable

2010-12-24 Thread Roland King
again read the documentation - it's all there .. quoting from it .. apple deals with that exact case This method is not called until users touch a row and then lift their finger; the row isn'€™t selected until then, although it is highlighted on touch-down. You can use

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
Yes, stupid me. I did search the documentation for a related problem: How can I detect whether the will and didAppear methods are called moving upwards or downwards through the viewControllers array of a navigationController? I mean I want to detect whether a TableViewController is shown

Re: UITableView with only 1 row selectable

2010-12-24 Thread Ricky Sharp
On Dec 24, 2010, at 4:01 AM, Roland King wrote: Why not do it the other way around. Set allowsSelection to YES and then implement the delegate method tableView:willSelectRowAtIndexPath: to return nil for any row you do NOT want selected (see the documentation). That seems to be apple's

Re: UKKQueue and CVS

2010-12-24 Thread Martin Hewitson
Hi Uli, I did try various combinations of the flags, and I even tried listening for all events: UKKQueueNotifyAboutRename | UKKQueueNotifyAboutWrite | UKKQueueNotifyAboutDelete | UKKQueueNotifyAboutAttributeChange I din't receive events having done a cvs commit on a file. However, I do get

Re: Colored Pattern example problems

2010-12-24 Thread FF
Thanks for reply Mr. Duncan, but it doesn't matter how you spin it. The title of the para. reads: A complete Colored Pattern Painting Function followed by: The function incorporates all the steps discussed previously - and this is what I expected. If the piece meal approach was taken to

Re: Colored Pattern example problems

2010-12-24 Thread WT
Hi Jack, Without getting into the merits of what expectations one should have regarding Apple's documentation, I just want to point out that the documentation pages have links available for the reader to make suggestions for improvements. If you think that Apple's docs should be presented

Re: UKKQueue and CVS

2010-12-24 Thread Gary L. Wade
Source control systems may modify hidden files locally when performing a commit; some have historically utilized the resource fork of the particular file instead to keep that commit/modified state. Still others may choose to use an xattr to track this. The bottom line is that the only real

Re: Colored Pattern example problems

2010-12-24 Thread Andy Lee
On Dec 24, 2010, at 11:34 AM, WT wrote: Hi Jack, Without getting into the merits of what expectations one should have regarding Apple's documentation, Or any documentation, for that matter. I just want to point out that the documentation pages have links available for the reader to make

Edit text bounding boxes

2010-12-24 Thread kevin
Hi, I am having trouble with the edit text bounding box for both a NSTextFieldCell and a ImageAndTextCell. The cells are used in a NSOutlineView which has a single NSTableColumn. There are two Interface builder nib files that define the window. The first which is simple defines the window

Re: Colored Pattern example problems

2010-12-24 Thread Kyle Sluder
On Fri, Dec 24, 2010 at 11:06 AM, FF fm...@ncf.ca wrote: As to the forums like this one, all questions should be answered. This is not an official communications channel. If you require a response from Apple, take out a DTS incident. If you're filing a bug, use the bug reporter. --Kyle Sluder

Re: UITableView with only 1 row selectable

2010-12-24 Thread Remco Poelstra
Hi, I'm unable to find that method. Is it still available? Kind regards, Remco Op 24 dec. 2010 om 14:01 heeft Ricky Sharp rsh...@mac.com het volgende geschreven: On Dec 24, 2010, at 4:01 AM, Roland King wrote: Why not do it the other way around. Set allowsSelection to YES and then

Re: UITableView with only 1 row selectable

2010-12-24 Thread Andy Lee
On Dec 24, 2010, at 12:28 PM, Remco Poelstra wrote: Hi, I'm unable to find that method. Is it still available? Are you looking in the delegate docs? http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSTableViewDelegate_Protocol/Reference/Reference.html Search the page

Re: UITableView with only 1 row selectable

2010-12-24 Thread Dave DeLong
NSTableView ≠ UITableView On Dec 24, 2010, at 9:29 AM, Andy Lee wrote: Are you looking in the delegate docs? http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSTableViewDelegate_Protocol/Reference/Reference.html Search the page for tableView:shouldSelectRow:

Re: UITableView with only 1 row selectable

2010-12-24 Thread Andy Lee
Whoops, sorry. --Andy On Dec 24, 2010, at 12:31 PM, Dave DeLong wrote: NSTableView ≠ UITableView On Dec 24, 2010, at 9:29 AM, Andy Lee wrote: Are you looking in the delegate docs?

NSTextField in NSMenuItem

2010-12-24 Thread Joshua Garnham
How can I display an editable NSTextField inside an NSMenuItem? I'm looking to do something similar to Spotlight. Would it work by simply usingsetView: on the menu item? Thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: UITableView with only 1 row selectable

2010-12-24 Thread Ricky Sharp
On Dec 24, 2010, at 11:28 AM, Remco Poelstra wrote: Hi, I'm unable to find that method. Is it still available? Kind regards, Remco Op 24 dec. 2010 om 14:01 heeft Ricky Sharp rsh...@mac.com het volgende geschreven: On Dec 24, 2010, at 4:01 AM, Roland King wrote: Why not do

UISearchDisplayController in UIToolbar on iPad

2010-12-24 Thread Alex Kac
Here is the situation. On iOS you must listen to memory warnings and handle them properly. So we have a view controller that we use with a UISearchDisplayController that sits in a UIToolbar on an iPad. If a memory warning occurs while the popover is up, the popover goes away, the search bar

Re: NSTextField in NSMenuItem

2010-12-24 Thread Kyle Sluder
On Fri, Dec 24, 2010 at 12:49 PM, Joshua Garnham joshua.garn...@yahoo.co.uk wrote: How can I display an editable NSTextField inside an NSMenuItem? I'm looking to do something similar to Spotlight. You can't. NSMenu doesn't support the event model necessary for this. Spotlight doesn't use a

Re: UISearchDisplayController in UIToolbar on iPad

2010-12-24 Thread Matt Neuburg
On Fri, 24 Dec 2010 12:12:32 -0600, Alex Kac a...@webis.net said: we have a view controller that we use with a UISearchDisplayController that sits in a UIToolbar on an iPad No, it doesn't. A UISearchDisplayController is a controller. A UIToolbar is a view. A controller can't sit in a view. It

Re: UKKQueue and CVS

2010-12-24 Thread Chris Ridd
On 24 Dec 2010, at 16:43, Gary L. Wade wrote: Source control systems may modify hidden files locally when performing a commit; some have historically utilized the resource fork of the particular file instead to keep that commit/modified state. Still others may choose to use an xattr to

Re: NSTextField in NSMenuItem

2010-12-24 Thread John C. Randolph
NSMenuItem's -setView: method should do what you need. -jcr On Dec 24, 2010, at 11:49 AM, Joshua Garnham wrote: How can I display an editable NSTextField inside an NSMenuItem? I'm looking to do something similar to Spotlight. Would it work by simply usingsetView: on the menu item?

Re: [Moderator] Re: Mac Apps

2010-12-24 Thread Scott Anguish
On Dec 24, 2010, at 1:10 PM, Shawn Bakhtiar wrote: Actually I was thinking the same thing, some help on how the Xcode / Cocoa cycle works in regards to distributing via App store would be really cool, and if there are any Cocoa adds to help validate, etc Putting that information

Re: [Moderator] Re: Mac Apps

2010-12-24 Thread Sherm Pendley
On Fri, Dec 24, 2010 at 9:49 PM, Scott Anguish sc...@cocoadoc.com wrote: On Dec 24, 2010, at 1:10 PM, Shawn Bakhtiar wrote: I hope this helps, more than No soup for you!!!” I certainly didn’t mean no soup for you. Godwin! sherm-- -- Cocoa programming in Perl:

Re: UKKQueue and CVS

2010-12-24 Thread Martin Hewitson
Thanks to all for the pointers and suggestions. I'll do some more research and report back if I find a good solution. Merry Christmas to all, Martin On Dec 24, 2010, at 10:48 PM, Chris Ridd wrote: On 24 Dec 2010, at 16:43, Gary L. Wade wrote: Source control systems may modify hidden