NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Trygve Inda
I have a NSTableView backed by an NSArrayController. If I am editing a cell in a row in the tableview and call addObject on the NSArrayController (to add a new row to the tableview), my editing session for some other row is ended. addObject is called from an NSNotification method when some other

Re: PDFView not rendering pages on scroll

2013-11-14 Thread Martin Hewitson
Continuing the discussion with only myself, so far…. I had the idea to make a trivial test app which just has a PDFView and a “Load” button. So I created the app on 10.9 with Xcode 5.0.2. It’s just a vanilla NSDocument app with a PDFView and a button. Compiles and runs fine on 10.9. So then I

Re: SKIndexAddDocument crashing

2013-11-14 Thread Aaron Burghardt
On Nov 8, 2013, at 9:27 AM, Mark Wright wrote: > It doesn’t crash if you replace the crashing line with: > >SKIndexAddDocumentWithText(searchIndexFile, doc, NULL, false); For the record, this doesn't crash but it doesn't index the content, either. it is up to the developer to extract the

Re: SKIndexAddDocument crashing

2013-11-14 Thread mailist
If anyone is watching who can expedite this, I have started a DTS incident. This does appear to be a serious bug in Search Kit. On 2013-11-14 07:41, Aaron Burghardt wrote: On Nov 8, 2013, at 9:27 AM, Mark Wright wrote: It doesn’t crash if you replace the crashing line with: SKIndexAd

Outpust stream/Native socket question:

2013-11-14 Thread Motti Shneor
Hi Everyone. I'm controlling the output stream created by ::CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, (CFStringRef)hostAddress, portNum, &readStream, &writeStream); ::CFWriteStreamSetProperty(writeStream, kCFStreamPropertyShouldCloseNativeSocket, kCFBooleanTrue); ::CF

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-14 Thread Graham Cox
Grrr. OK, I’ve got a beautiful progress-monitoring solution that works lovely for background threads with minimal impact on that thread (or for work that is done in chunks on the main thread), and it’s doing great service for tracking a lengthy file open (as a side note, I’ve tracked down some

Re: Outpust stream/Native socket question:

2013-11-14 Thread Jens Alfke
The macnetworkprog list on this site would be a better place to ask this. I don’t think the networking gurus who can answer it read the cocoa-dev list. —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Keary Suska
On Nov 14, 2013, at 12:54 AM, Trygve Inda wrote: > I have a NSTableView backed by an NSArrayController. > > If I am editing a cell in a row in the tableview and call addObject on the > NSArrayController (to add a new row to the tableview), my editing session > for some other row is ended. > > a

Plugin API for OS X "Share" service?

2013-11-14 Thread Jens Alfke
Is it possible to implement new sharing services that will show up in applications’ Share menus/buttons? Or is it hardcoded to the specific list of [mainstream, dull] services that Apple deemed worthy of support? :-p I’m looking at the docs for the “Social” framework but they don’t say anything

Re: UIPopover arrow not centered on source frame

2013-11-14 Thread Fritz Anderson
On 13 Nov 2013, at 11:28 PM, Rick Mann wrote: > I use a storyboard segue to present this popover, but it's not centered on > the button: > > http://cl.ly/image/1S153u1a1I3O > > Any idea what's wrong? TIA, [Shows something that looks like a gray gear-icon UIBarButtonItem in a UIToolbar

Re: Outpust stream/Native socket question:

2013-11-14 Thread Motti Shneor
Hi Jens, and thanks for the enlightening advice. I believe my question was more a Cocoa question, than a "networking guru" thing. It is really about the NSOutputStream/NSInputStream integration with their lower-level layers of MacOS/iOS. In the past I asked many questions here about NSThread's

Re: NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Trygve Inda
> On Nov 14, 2013, at 12:54 AM, Trygve Inda wrote: > >> I have a NSTableView backed by an NSArrayController. >> >> If I am editing a cell in a row in the tableview and call addObject on the >> NSArrayController (to add a new row to the tableview), my editing session >> for some other row is ende

Re: UIPopover arrow not centered on source frame

2013-11-14 Thread David Duncan
On Nov 13, 2013, at 9:28 PM, Rick Mann wrote: > I use a storyboard segue to present this popover, but it's not centered on > the button: > > http://cl.ly/image/1S153u1a1I3O > > Any idea what's wrong? TIA, Pretty certain this is an iOS bug. You can see it in Photos if you navigate to a

Re: Outpust stream/Native socket question:

2013-11-14 Thread Jens Alfke
On Nov 14, 2013, at 9:56 AM, Motti Shneor wrote: > I believe my question was more a Cocoa question, than a "networking guru" > thing. It is really about the NSOutputStream/NSInputStream integration with > their lower-level layers of MacOS/iOS. Well, NSStream is really just a thin glue layer

Re: Outpust stream/Native socket question:

2013-11-14 Thread Motti Shneor
Wow, thanks! is Quinn still there??? I had him help me back in the days of OpenTransport, writing an extremely nasty media-streaming server for MacOS 8.6, QuickTime conferencing, first Carbon) and cherished every little thing he said. No doubt, he's the one to ask... Thanks again! On 14 בנוב

Re: UIPopover arrow not centered on source frame

2013-11-14 Thread Rick Mann
On Nov 14, 2013, at 09:22 , Fritz Anderson wrote: > On 13 Nov 2013, at 11:28 PM, Rick Mann wrote: > >> I use a storyboard segue to present this popover, but it's not centered on >> the button: >> >> http://cl.ly/image/1S153u1a1I3O >> >> Any idea what's wrong? TIA, > > [Shows something

Re: waitUntilDone: parameter when performing selector on main thread

2013-11-14 Thread Jerry Krinock
On 2013 Nov 14, at 08:01, Graham Cox wrote: > Grrr. OK, a couple really wild ideas. I don’t know whether or not you’re working with NS Persistent Document, Core Data. You know that when NSPersistentDocument reverts, it closes and releases all document windows and creates new ones. But pla

Re: NSArrayController + NSTableView addObject ends editing

2013-11-14 Thread Keary Suska
On Nov 14, 2013, at 8:04 AM, Trygve Inda wrote: >> On Nov 14, 2013, at 12:54 AM, Trygve Inda wrote: >> >>> I have a NSTableView backed by an NSArrayController. >>> >>> If I am editing a cell in a row in the tableview and call addObject on the >>> NSArrayController (to add a new row to the tabl

Why is there no -createFileAtPath: with an error return parameter?

2013-11-14 Thread Rick Mann
They deprecated the createDirectory... methods and replaced them with ones that return an error, why not the create file method? -- Rick signature.asc Description: Message signed with OpenPGP using GPGMail ___ Cocoa-dev mailing list (Cocoa-dev@li

Re: Why is there no -createFileAtPath: with an error return parameter?

2013-11-14 Thread Quincey Morris
On Nov 14, 2013, at 15:15 , Rick Mann wrote: > They deprecated the createDirectory... methods and replaced them with ones > that return an error, why not the create file method? Use [NSData writeToURL…] instead. ___ Cocoa-dev mailing list (Cocoa-

Re: Why is there no -createFileAtPath: with an error return parameter?

2013-11-14 Thread Sean McBride
On Thu, 14 Nov 2013 15:22:14 -0800, Quincey Morris said: >> They deprecated the createDirectory... methods and replaced them with >ones that return an error, why not the create file method? > >Use [NSData writeToURL…] instead. Including [[NSData data] writeToURL:...] to create an empty file. Che

table view in popover does a jump-scroll when appearing

2013-11-14 Thread Rick Mann
This is kinda hard to describe. iOS 7. I have a UINavigationController in a popover in my iPad app. It lists a bunch of items. You can also add a new item, which causes the new item to be inserted in the list, then selected, and the item detail pushed. You can see all this happen as a result of

table view in popover does a jump-scroll when appearing

2013-11-14 Thread Rick Mann
I should add: It's happening as a result of the keyboard coming up, since the first field is made the first responder when the detail view is shown. I wonder how to prevent the pop scroll in this situation. The popover is being shrunk vertically. -- This is kinda hard to describe. iOS 7.

Re: table view in popover does a jump-scroll when appearing

2013-11-14 Thread Rick Mann
Ah. It seems to happen only when I make an editable field the first responder right away. If you click to do so, the keyboard comes up without issue. But if I do it programmatically in viewDisAppear, or viewWillAppear, then the keyboard makes it jump. On Nov 14, 2013, at 18:06 , Rick Mann wrot

Value of self changes

2013-11-14 Thread Jerry Krinock
Several years ago, I subclassed NSPopUpButtonCell and am using it as a table header cell, so the user can select which attribute is displayed in the column. Maybe this was not a good idea, but anyhow… A few years ago, I noticed a rare, unreproducible bug in my app wherein this cell would recei