Re: IBOutlet & NSNumber

2012-10-13 Thread Ken Thomases
On Oct 13, 2012, at 11:17 PM, Randy Widell wrote: > Wow. Woah. OK, sorry my ignorance offends. I didn't express offense. At least, I didn't intend to. > What in the world was I trying to do…I was trying to bind the selection > index of a NSComboBox to a NSNumber because the Apple Cocoa bind

Re: IBOutlet & NSNumber

2012-10-13 Thread Randy Widell
Wow. Woah. OK, sorry my ignorance offends. What in the world was I trying to do…I was trying to bind the selection index of a NSComboBox to a NSNumber because the Apple Cocoa bindings document for NSComboBox says the value can be bound to a NSNumber. Using -init didn't seem so nonsensical to

Re: filtering an array of entities using NSPredicate

2012-10-13 Thread Jerry Krinock
It looks to me like what you're doing should work as you expect. I don't think you are violating any of the predicate gotchas in Core Data Programming Guide ▸ Persistent Store Features. So you need to experiment with different methods. • Remove the -setPredicate: statement. Now is filteredP

Re: IBOutlet & NSNumber

2012-10-13 Thread Ken Thomases
On Oct 13, 2012, at 9:49 PM, Randy Widell wrote: > Quick question… For some reason I cannot find an answer. > > I have a NSWindowController subclass and I want to bind the selection index > of a NSComboBox to a NSNumber that is an IBOutlet of the NSWindowController > subclass. I have a NSNumb

IBOutlet & NSNumber

2012-10-13 Thread Randy Widell
Quick question… For some reason I cannot find an answer. I have a NSWindowController subclass and I want to bind the selection index of a NSComboBox to a NSNumber that is an IBOutlet of the NSWindowController subclass. I have a NSNumber object in the window's XIB and the object is linked to t

filtering an array of entities using NSPredicate

2012-10-13 Thread Koen van der Drift
I have a large array for Person entities, and want to filter them before importing into my Core Data database, so that each Person will be only once in the database based on the name. The names are pulled from a database, and have the format: @"Jones, A." After some searching, I came up with t

Re: copy in WebView

2012-10-13 Thread Kyle Sluder
On Sat, Oct 13, 2012, at 01:19 PM, Andy Lee wrote: > Unless I'm mistaken, Kyle meant the view hierarchy, not the inheritance > hierarchy. In other words, if you go up the superview chain starting at > the window's first responder, do you encounter your WebView? You are correct. I was referring to

Re: copy in WebView

2012-10-13 Thread Andy Lee
On Oct 13, 2012, at 3:22 PM, Gerriet M. Denkmann wrote: > > On 14 Oct 2012, at 01:46, Kyle Sluder wrote: > >> On Sat, Oct 13, 2012, at 09:47 AM, Gerriet M. Denkmann wrote: >>> Well, there is one small problem: >>> This line: >>> if ( [ targetForCopy isKindOfClass: NSClassFromString (@"Web

Re: copy in WebView

2012-10-13 Thread Gerriet M. Denkmann
On 14 Oct 2012, at 01:46, Kyle Sluder wrote: > On Sat, Oct 13, 2012, at 09:47 AM, Gerriet M. Denkmann wrote: >> Well, there is one small problem: >> This line: >> if ( [ targetForCopy isKindOfClass: NSClassFromString (@"WebHTMLView") >> ] ) then do my own stuff... >> has this undocumented

Re: copy in WebView

2012-10-13 Thread Kyle Sluder
On Sat, Oct 13, 2012, at 09:47 AM, Gerriet M. Denkmann wrote: > Well, there is one small problem: > This line: > if ( [ targetForCopy isKindOfClass: NSClassFromString (@"WebHTMLView") > ] ) then do my own stuff... > has this undocumented WebHTMLView. > So if Apple changes WebKit to use WebN

Re: copy in WebView

2012-10-13 Thread Gerriet M. Denkmann
On 13 Oct 2012, at 21:30, Keary Suska wrote: > On Oct 13, 2012, at 5:12 AM, Gerriet M. Denkmann wrote: > >> >> On 12 Oct 2012, at 23:02, Kyle Sluder wrote: >> >>> On Oct 12, 2012, at 1:47 AM, "Gerriet M. Denkmann" >>> wrote: >>> I managed (using: ) to get the selection an

Re: copy in WebView

2012-10-13 Thread Gerriet M. Denkmann
On 12 Oct 2012, at 23:02, Kyle Sluder wrote: > On Oct 12, 2012, at 1:47 AM, "Gerriet M. Denkmann" > wrote: > >> >> I managed (using: ) to get the >> selection and modify it (removing unwanted characters) but I do not know how >> to put the resulting string onto the clipboard. > > That sho

Re: Getting a dotted font from a regular font

2012-10-13 Thread Andres Kievsky
On 13/10/2012, at 11:22 AM, Graham Cox mailto:graham@bigpond.com>> wrote: On 01/10/2012, at 11:02 AM, Andres Kievsky mailto:a...@a2apps.com.au>> wrote: Then I would render each font in a small, low resolution bitmap (say, 10x10) and then use that bitmap to find the centres around which t