I ran into this recently too, and stumbled on this unintuitive solution for doing this without starting a dummy Xcode project.
(Although you might as well, if you're going to do lots of editing of nibs)
Note, I only tried this for connecting IBOutlets to objects in a nib, I haven't tried adding IBActions, but I assume it'd work.

- Declare your outlets and actions in the python file using e.g. objc.IBOutlet
- open your nib in Xcode
- choose Navigate > Reveal in Project Navigator to show the hidden left pane that now includes just your nib file
- drag your pyobjc file to that pane

Then Xcode parses the IBOutlets (and hopefully also IBActions) declared in that file, making them available to hook up in IB.

This worked for me, but is not based on any deep understanding of Xcode's new organization, so your mileage etc etc.

Hope this is helpful.
-mike


On Tue, Oct 2, 2012 at 3:47 PM, Diez B. Roggisch <deets@web.de> wrote:

On Oct 1, 2012, at 7:29 PM, Ronald Oussoren wrote:

>
> On 28 Sep, 2012, at 17:18, Diez B. Roggisch <deets@web.de> wrote:
>
>> Hi,
>>
>> ooookeeey. This is embarrassing. But the new Xcode 4 Interface Builder is… something to get used to. And the one thing totally not working for me: making new IBActions. There used to be a time when you could simple do that, IB wouldn't care, but the runtime would connect things as advertised.
>>
>> Now, I can't do anything anymore.
>>
>> All I do is open a XIB-File in XCode, there is no "project" involved. Is that maybe the reason?
>
> It should work when you create an Xcode project that contains the Python source files that define the actions. You don't have to use Xcode to actually build the application bundle.

Tried that, failed, got your mail, tried it again - if the names of the Class-File are the same, it works. I guess I had problems because of an "old" XIB just being used.

Thanks,

Diez
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev