About Archive Tag Cloud Translations RSS

You are writing a comment about Epic PyObjc, Part 4: Drag & Drop, Multiple Nibs, here is a quick summary:

In this fourth segment of the Epic PyObjC tutorial we take a look at implementing drag and drop in two different ways, as well as using multiple nibs in one application. This is the final segment of Epic PyObjC that focuses on this project; the fifth one will be a collection of resources about continuing with Cocoa and PyObjC.


You are responding to this comment written by Joe Strout on October 3rd 2008, 21:40.

I have to humbly disagree with the statement "now you know enough to take care of that on your own." I gave it some thought, and concluded that I haven't a clue -- I don't even understand how the current code works, let alone how I would make it do something different. Indeed, a big part of the problem is that most of the functionality doesn't seem to involve any code at all; it appears to be magic.

Let's take the name appearing in the new window for starters. I have many questions. We bound the label's "Value" to "File's Owner" (which we previously defined as a MWRowWindowController), and then set the Model Key Path to rowDict.name. But what is that? How do I know that rowDict has a "name" property? I tried printing dir(row) in the open method, and it spewed out a bunch of items, none of which were 'name'.

But even if I understood that, how would I get from there to displaying some more complex content, when there seems to be no code involved?

I'll fiddle around and probably eventually figure it out, but it'd be great if you could at least point us in the right direction with another sentence or two.


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")