• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unable to attach actions in Python/Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to attach actions in Python/Cocoa


  • Subject: Re: Unable to attach actions in Python/Cocoa
  • From: "Jose R.C. Cruz" <email@hidden>
  • Date: Mon, 4 Feb 2008 15:57:26 -0800

2008 Feb 04, 15:54 PST

That worked beautifully!  Thank you very much.

-----
J.C. Cruz
email@hidden



On 4 Feb 2008, at 15:38:37, Bill Bumgarner wrote:

On Feb 4, 2008, at 1:49 PM, Jose R.C.Cruz wrote:
Am I missing something here? The steps I used to bind each field and control on the window to the class BMICalculate are the same ones I used on pure Cocoa appl. Somehow, they do not work when using PyCocoa.

In main.py, make sure you have the following line before control is passed off to Cocoa.


import BMICalculate

When the main.py is executed as a part of bootstrapping Cocoa & PyObjC, that will cause the class to be defined before the NIB is loaded.

b.bum





_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Unable to attach actions in Python/Cocoa (From: Jose R.C.Cruz <email@hidden>)
 >Re: Unable to attach actions in Python/Cocoa (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Unable to attach actions in Python/Cocoa
  • Next by Date: Header File Problem; sorry to bug this list...
  • Previous by thread: Re: Unable to attach actions in Python/Cocoa
  • Next by thread: Code sense with C++
  • Index(es):
    • Date
    • Thread