Re: Creating NSTableView programmatically
Re: Creating NSTableView programmatically
- Subject: Re: Creating NSTableView programmatically
- From: Richard Charles <email@hidden>
- Date: Wed, 20 Dec 2017 10:16:34 -0700
> On Dec 20, 2017, at 2:23 AM, Eric Matecki <email@hidden> wrote:
>
> My project is based on what I believe is an official sample from Apple,
> which Richard Charles posted as an attachment to his msg from 12/12/2017.
It looks like you have taken your project from Malcolm Crawford's “Combatants”
sample code. If I remember correctly Malcolm did work for Apple and was a one
of the public experts on Cocoa bindings at the time. This sample code however
is of his own making and did not come from Apple. In this sample code he does
subclass NSArrayController and overrides the behavior of arrangeObjects: to
exclude the selection (much to my surprise). This is very advanced stuff you
are delving into.
Malcolm's sample code that really helped me was "Graphics Bindings” which was
aligned with a major project I was working on. On this project I actually ended
up subclassing NSArrayController because I could see no way around it but as
Quincey Morris has indicated it was a very painful process.
But before delving into programmatic Cocoa bindings I must have spent a year
with Aaron Hillegass in Cocoa Programming for Mac OS X. If you have a C++
background, Aaron will take you by the hand and lead you along a correct path.
My current major project is for macOS and requires interoperability with C++ so
I have yet to jump on the Swift or iOS bandwagon. Note that Cocoa Programming
by Hillegass uses the Swift language starting with the 5th Edition and up.
I actually use OS X v10.9 documentation every day. It is old style, accurate,
extremely usable, searchable, compact, and works well inside a web browser. I
absolutely detest the new style documentation and find it almost unusable.
Anyway that is what I do for documentation.
Good luck with your project.
--Richard Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden