Skip navigation.
 
mlRe: Bypassing Interface Builder
FROM : Graham Cox
DATE : Thu May 15 02:29:14 2008

Do join the DK mailing list if you haven't already. (http://lists.apptree.net/listinfo.cgi/drawkit-apptree.net
) I'm very willing to help people out with learning the framework, and 
I don't want to pollute cocoa-dev with DK related stuff.

A new beta and a start on the documentation is coming (maybe today if 
I can get moving).

I recognise the difficulty in figuring out how things work, especially 
with little or no docs, but I'm not sure that trying to hack it down 
to a smaller case is likely to be all that fruitful. For example, if 
you tried to strip out or bypass the controllers you'd find nothing 
would work, because the connection between the view and the data model 
would be gone, and the controller implements the tool(s) that are used 
to draw new objects. The pathways that a mouse event, for example, 
takes from a click or drag in the view to creating an object in the 
drawing is logical, but not absolutely direct - various objects get a 
pop at it and all with good reason. Unfortunately the price of 
flexibility is often added complexity. My suggestion would be to let 
DKDrawingView set everything up for you, then you could try exploring 
using gdb.

Anyway, this is off-topic. Feel free to take it up on the DK mailing 
list.



G.

On 15 May 2008, at 10:14 am, colo wrote:

> On Wed, May 14, 2008 at 7:41 PM, Graham Cox <graham.<email_removed>> 
> wrote:

>> One thing to point out here (as the author of DrawKit) is that 
>> DrawKit
>> doesn't use INTERFACE builder to any great extent because it is 95% 
>> data
>> model. In the model-view-controller architecture, Interface Builder 
>> is
>> useful mostly for V, and to some extent for C and very little for 
>> M. So
>> trying to use IB for something it isn't useful for is a sure route to
>> frustration and misunderstanding.
>>

>
> That's what I noticed mostly from reading your source example app. I
> started to try and hack "out" features so I could get it to the core
> of just drawing a box so I can see the root code of what calls it up
> and stuff. But thats where my lack of real cocoa comes into play atm.
> And it not compiling :P
>
> But I did not want to bother you on it per request message on your
> website, and the fact that I just need to learn more still.
>
>
>

>> You might want to look for a local CocoaHeads or NSCoderNight 
>> chapter for
>> where you live.
>>
>> j o a r

>
> Sadly joar there are zilch in Portland, ME, and I know of zilch cocoa
> programers besides Rails people.

Related mailsAuthorDate
mlBypassing Interface Builder colo May 14, 16:36
mlRe: Bypassing Interface Builder I. Savant May 14, 17:11
mlRe: Bypassing Interface Builder colo May 14, 17:35
mlRe: Bypassing Interface Builder I. Savant May 14, 17:43
mlRe: Bypassing Interface Builder Andy Lee May 14, 17:50
mlRe: Bypassing Interface Builder colo May 14, 17:53
mlRe: Bypassing Interface Builder I. Savant May 14, 17:58
mlRe: Bypassing Interface Builder David Wilson May 14, 17:59
mlRe: Bypassing Interface Builder I. Savant May 14, 18:01
mlRe: Bypassing Interface Builder I. Savant May 14, 18:05
mlRe: Bypassing Interface Builder Gregory Weston May 14, 18:06
mlRe: Bypassing Interface Builder glenn andreas May 14, 18:13
mlRe: Bypassing Interface Builder Wayne Packard May 14, 18:26
mlRe: Bypassing Interface Builder Andy Lee May 14, 18:37
mlRe: Bypassing Interface Builder Stefan Werner May 14, 18:46
mlRe: Bypassing Interface Builder Bill Bumgarner May 14, 19:00
mlRe: Bypassing Interface Builder Boyd Collier May 14, 19:34
mlRe: Bypassing Interface Builder colo May 14, 19:37
mlRe: Bypassing Interface Builder Julius Guzy May 14, 22:05
mlRe: Bypassing Interface Builder Torsten Curdt May 14, 22:49
mlRe: Bypassing Interface Builder colo May 15, 00:53
mlRe: Bypassing Interface Builder Graham Cox May 15, 01:26
mlRe: Bypassing Interface Builder Graham Cox May 15, 01:41
mlRe: Bypassing Interface Builder colo May 15, 02:14
mlRe: Bypassing Interface Builder Johnny Lundy May 15, 02:15
mlRe: Bypassing Interface Builder Graham Cox May 15, 02:29
mlRe: Bypassing Interface Builder I. Savant May 15, 02:43
mlRe: Bypassing Interface Builder Graham Cox May 15, 02:45
mlRe: Bypassing Interface Builder I. Savant May 15, 02:51
mlRe: Bypassing Interface Builder I. Savant May 15, 02:54
mlRe: Bypassing Interface Builder Andy Lee May 15, 03:02
mlRe: Bypassing Interface Builder Graham Cox May 15, 03:02
mlRe: Bypassing Interface Builder Andy Lee May 15, 03:06
mlRe: Bypassing Interface Builder I. Savant May 15, 03:07
mlRe: Bypassing Interface Builder Andy Lee May 15, 03:08
mlRe: Bypassing Interface Builder I. Savant May 15, 03:09
mlRe: Bypassing Interface Builder I. Savant May 15, 03:15
mlRe: Bypassing Interface Builder Andy Lee May 15, 03:29
mlRe: Bypassing Interface Builder Julius Guzy May 15, 03:35
mlRe: Bypassing Interface Builder I. Savant May 15, 03:37
mlRe: Bypassing Interface Builder Johnny Lundy May 15, 04:33
mlRe: Bypassing Interface Builder Julius Guzy May 15, 04:36
mlRe: Bypassing Interface Builder Johnny Lundy May 15, 04:54
mlRe: Bypassing Interface Builder Graham Cox May 15, 05:43
mlRe: Bypassing Interface Builder Uli Kusterer May 15, 07:50
mlRe: Bypassing Interface Builder Uli Kusterer May 15, 07:55
mlRe: Bypassing Interface Builder Uli Kusterer May 15, 08:15
mlcocoa mentoring (was Re: Bypassing Interface Builder) Torsten Curdt May 15, 15:36
mlRe: cocoa mentoring (was Re: Bypassing Interface Builder) Paul Bruneau May 15, 15:47
mlRe: cocoa mentoring (was Re: Bypassing Interface Builder) Uli Kusterer May 15, 16:08
mlcocoaheads frankfurt (was Re: cocoa mentoring) Torsten Curdt May 15, 16:44
mlRe: cocoa mentoring (was Re: Bypassing Interface Builder) Torsten Curdt May 15, 16:51
mlRe: Bypassing Interface Builder Andy Lee May 15, 17:11
mlRe: Bypassing Interface Builder Johnny Lundy May 15, 18:40
mlRe: cocoa mentoring (was Re: Bypassing Interface Builder) Dennis Munsie May 15, 19:34
mlRe: Bypassing Interface Builder Paul Sargent May 15, 20:07
mlRe: Bypassing Interface Builder Uli Kusterer May 15, 20:48
mlRe: Bypassing Interface Builder Shawn Erickson May 15, 22:20
mlRe: Bypassing Interface Builder Shawn Erickson May 15, 22:30
mlRe: Bypassing Interface Builder Johnny Lundy May 15, 22:32
mlRe: cocoa mentoring (was Re: Bypassing Interface Builder) Torsten Curdt May 15, 23:03