Re: Language options: Objective-C, Swift, C or C++?

2015-06-14 Thread Maxthon Chan
I actually don’t use C++ with Objective-C - in fact, I flat out hate it from the half year being forced to use it in a CS course. Actually I even created a rough Foundation clone and migrated almost all programming paradigms from Objective-C to C++. Compare this: CCArray *array = CCArray::alloc

Re: NSFontPanel for a modal window

2015-06-14 Thread Jack Brindle
I’’m surprised that no one else has suggested looking at the TextEdit source. It’s available from Apple as a sample… That should be rather revealing. - Jack > On Jun 13, 2015, at 10:00 PM, Kurt Sutter wrote: > > Good point. Yes, I have some changeFont: selectors in some of my classes, but > I

Re: Language options: Objective-C, Swift, C or C++?

2015-06-14 Thread Rick Mann
> On Jun 14, 2015, at 04:56 , Maxthon Chan wrote: > > I actually don’t use C++ with Objective-C - in fact, I flat out hate it from > the half year being forced to use it in a CS course. Actually I even created > a rough Foundation clone and migrated almost all programming paradigms from > Obj

Re: Language options: Objective-C, Swift, C or C++?

2015-06-14 Thread Uli Kusterer
On 13 Jun 2015, at 15:33, Maxthon Chan wrote: > I don’t think Objective-C will ever be shut down since Swift also links to > libobjc runtime library, which means Swift is, technically, a dialect of > Objective-C with some syntactic sugar and compile-time checks allowing some > more advanced pro

Re: Language options: Objective-C, Swift, C or C++?

2015-06-14 Thread Uli Kusterer
On 13 Jun 2015, at 16:42, Carl Hoefs wrote: > Bingo. Even after reading all the posts in this thread, I still don’t know > what problem Swift addresses, and no one seems to be able to answer that > question — not even Apple in its marketing hype. I’m criminally simplifying here, but effectivel

Re: NSFontPanel for a modal window

2015-06-14 Thread Uli Kusterer
On 13 Jun 2015, at 21:30, Kurt Sutter wrote: > It does not help — the panel i actually already in front when it appears, and > calling -orderFront: does not help. It only works when it is the key window. Coming late in here: Have you remembered to uncheck “visible on launch” in the XIB for that

Re: NSFontPanel for a modal window

2015-06-14 Thread Uli Kusterer
> On 14 Jun 2015, at 14:32, Uli Kusterer wrote: > > On 13 Jun 2015, at 21:30, Kurt Sutter wrote: >> It does not help — the panel i actually already in front when it appears, >> and calling -orderFront: does not help. It only works when it is the key >> window. > > Coming late in here: Have y

Re: NSFontPanel for a modal window

2015-06-14 Thread Graham Cox
> On 14 Jun 2015, at 2:30 pm, Kurt Sutter wrote: > > It does not help — the panel i actually already in front when it appears, and > calling -orderFront: does not help. It only works when it is the key window. OK, it’s time to show your code. What’s odd is that you say your font panel is vis

Re: Language options: Objective-C, Swift, C or C++?

2015-06-14 Thread Quincey Morris
On Jun 13, 2015, at 19:50 , Rick Mann wrote: > > Watch the talk on protocol-oriented programming > (https://developer.apple.com/videos/wwdc/2015/?id=408 > ). You liked that, huh? I also recommend “Swift in Practice” (https://developer.appl

Re: NSFontPanel for a modal window

2015-06-14 Thread Kurt Sutter
Yes, you are right. The actual showing of the font panel occurs by calling NSFontManager* shrdFontMgr = [NSFontManager sharedFontManager]; [shrdFontMgr orderFrontFontPanel:textView]; This shows the font panel, but does not make it active. When I click into a new font of that fon