• 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
Access ObjC class from PyOBJC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Access ObjC class from PyOBJC


  • Subject: Access ObjC class from PyOBJC
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 2 Jun 2010 22:16:56 +0100

My app is ObjC cocoa based

It also loads and executes PyObjC classes.

I require my loaded PyObjC code to access an ObjC class (myControllerClass) defined within an ObjC framework linked to the main application.

The desired Python looks something like:

#py
import AppKit

taskController = myControllerClass.sharedController()

#py

Do I need to define a py wrapper from my framework and import it to accomplish this?
And if so, how is the wrapper constructed.

Or am I missing something simple here.

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.com







_______________________________________________

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

  • Follow-Ups:
    • Re: Access ObjC class from PyOBJC
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: Mail Frameworks
  • Next by Date: Re: Access ObjC class from PyOBJC
  • Previous by thread: Re: Problem with CGPDFPageRef
  • Next by thread: Re: Access ObjC class from PyOBJC
  • Index(es):
    • Date
    • Thread