Re: NSSearchField and CR

2013-10-31 Thread Gerriet M. Denkmann
On 31 Oct 2013, at 22:07, Kyle Sluder wrote: >> On Oct 31, 2013, at 6:10 AM, "Gerriet M. Denkmann" >> wrote: > >> >> I have an NSSearchField with sendsWholeSearchString = NO in order to do >> incremental searches. >> But if the content of the search field is a regular expression, I only wan

Re: 10.9: Some Async Saving is ON even if you say NO?

2013-10-31 Thread Jerry Krinock
On 2013 Oct 31, at 15:08, Mike Abdullah wrote: > Indeed. Brief self-promotion, BSManagedDocument does both of these: > https://github.com/karelia/BSManagedDocument Mike, I see you derived that from Sasmito Adibowo’s work. I'd found Sasmito's in an internet search yesterday, but when I saw he

Re: 10.9: Some Async Saving is ON even if you say NO?

2013-10-31 Thread Mike Abdullah
On 31 Oct 2013, at 19:18, Sean McBride wrote: > (NSPersistentDocument is infuriating. No support for async save, no support > for packages/bundles, and no love at all in recent OSes.) Indeed. Brief self-promotion, BSManagedDocument does both of these: https://github.com/karelia/BSManagedDocu

Re: Minimizing NSTableView redraws

2013-10-31 Thread Graham Cox
On 31 Oct 2013, at 6:01 pm, livinginlosange...@mac.com wrote: > I have profiled my code and it appears that "set to continuously update" > marks the whole table view for update. On every keypress, the whole entire > NSTableView is redrawn. > > Is there any strategy to minimize this full redraw

Re: Minimizing NSTableView redraws

2013-10-31 Thread Jens Alfke
On Oct 31, 2013, at 10:01 AM, livinginlosange...@mac.com wrote: > As my list of rows grows, text entry in my NSTextView crawls to a slow. I > have profiled my code and it appears that "set to continuously update" marks > the whole table view for update. On every keypress, the whole entire > NS

Re: 10.9: Some Async Saving is ON even if you say NO?

2013-10-31 Thread Sean McBride
On Thu, 31 Oct 2013 12:54:04 -0700, Jerry Krinock said: >>> I am surprised because this is actually a Core Data >>> NSPersistentDocument, and following Apple recommendations I have >implemented >>> -[MyDocument canAsynchronouslyWriteToURL:ofType:forSaveOperation:] >>> to return NO. >> >> Where do

Re: 10.9: Some Async Saving is ON even if you say NO?

2013-10-31 Thread Jerry Krinock
On 2013 Oct 31, at 12:18, Sean McBride wrote: > On Wed, 30 Oct 2013 16:00:23 -0700, Jerry Krinock said: > >> I am surprised because this is actually a Core Data >> NSPersistentDocument, and following Apple recommendations I have implemented >> -[MyDocument canAsynchronouslyWriteToURL:ofType:for

Re: 10.9: Some Async Saving is ON even if you say NO?

2013-10-31 Thread Sean McBride
On Wed, 30 Oct 2013 16:00:23 -0700, Jerry Krinock said: >I am surprised because this is actually a Core Data >NSPersistentDocument, and following Apple recommendations I have implemented >-[MyDocument canAsynchronouslyWriteToURL:ofType:forSaveOperation:] >to return NO. Where do they recommend tha

Minimizing NSTableView redraws

2013-10-31 Thread livinginlosangeles
I have an NSTableView with as many as 40 rows and 12 columns. Each row in my tableview represents one of my model objects. I use a detail view to edit objects that are displayed in the tableview. I have an NSTextView that is set to continuously update when a user modifies the NSAttributed string

Re: NSSearchField and CR

2013-10-31 Thread Jerry Krinock
On 2013 Oct 31, at 08:07, Kyle Sluder wrote: > I would think the best approach is to offer a checkbox to switch between > plain text and regex search. It’s a no-brainer, for all the reasons Kyle said. Xcode, AppCode, BBEdit all do it this way. _

Re: 10.9 Bug in Core Data : Entity Description methods

2013-10-31 Thread Jerry Krinock
On 2013 Oct 31, at 08:51, Mike Abdullah wrote: > Sounds to me like the dictionary is somehow internally set up to use pointer > equality. For the literal syntax, perhaps that happens to work out as Core > Data is using the same underlying string objects? That’s what I thought too, Mike. It’s

Re: 10.9 Bug in Core Data : Entity Description methods

2013-10-31 Thread Mike Abdullah
Sounds to me like the dictionary is somehow internally set up to use pointer equality. For the literal syntax, perhaps that happens to work out as Core Data is using the same underlying string objects? An interesting test would be to first make a copy of the dictionary (both using -copy and +di

Re: Superimposing NSViews over an SKView

2013-10-31 Thread Charles Srstka
On Oct 31, 2013, at 4:02 AM, Eric Wing wrote: > On 10/30/13, Charles Srstka wrote: >> In Apple's Sprite Kit documentation, it claims: >> >> "Because Sprite Kit content is rendered by a view object, you can combine >> this view with other views in the view hierarchy. For example, you can use >>

Re: NSSearchField and CR

2013-10-31 Thread Kyle Sluder
> On Oct 31, 2013, at 6:10 AM, "Gerriet M. Denkmann" > wrote: > > I have an NSSearchField with sendsWholeSearchString = NO in order to do > incremental searches. > But if the content of the search field is a regular expression, I only want > to process it when the regular expression is comple

10.9 Bug in Core Data : Entity Description methods

2013-10-31 Thread Jerry Krinock
When you send -objectForKey: to the dictionary returned by -[NSManagedObjectModel entitiesByName], -objectForKey: returns the expected result if the passed-in key is a literal constant such as @“foo”. But if you instead pass in a local variable whose value is constructed to be equal to @“foo”,

NSSearchField and CR

2013-10-31 Thread Gerriet M. Denkmann
I have an NSSearchField with sendsWholeSearchString = NO in order to do incremental searches. But if the content of the search field is a regular expression, I only want to process it when the regular expression is complete, i.e. when the user enters CR (aka "return"). Is there a way to disting

Re: Superimposing NSViews over an SKView

2013-10-31 Thread Eric Wing
On 10/30/13, Charles Srstka wrote: > In Apple's Sprite Kit documentation, it claims: > > "Because Sprite Kit content is rendered by a view object, you can combine > this view with other views in the view hierarchy. For example, you can use > standard button controls and place them above your Sprit