pyobjc Questions

1

Anybody knows how to fix PyObjC on iPhone 4s running iOS 5.0.1? On my iPhone 4 with iOS 4.2.1 everything was working perfectly. On the iPhone 4s with iOS 5.0.1 (and all the (same) packages install...
Anthropomorphize asked 9/2, 2012 at 12:48

1

Solved

I'm trying to send notifications to Mountain Lion from my python script and react to clicks on the notifications. Sending the notifications works perfectly find by now. But yet I was not able to ge...
Gilli asked 30/8, 2012 at 18:12

3

Solved

Xcode 3 had templates for building Cocoa subclasses in Python. I've recently upgraded to Xcode 4 but I cannot find out how I can use other languages besides the C family (C, C++, Obj-C) in Xcode 4....
Shenashenan asked 30/4, 2011 at 17:39

1

Solved

environment: MacOS X 10.7.2, system installed python 2.7.1, virtualenv 1.7.2, pyobjc 2.3, py2app 0.6.4+ I have a newly created virtualenv with pyobc 2.3 and py2app installed. When I run python set...
Consummation asked 17/4, 2012 at 4:16

1

Solved

I'd like to have a small browser that uses my own CSS. The problem is that CSS is not loaded or, I guess, it loads but without any effect. Here is the full code (I don't use an Interface Builder):...
Piffle asked 28/8, 2011 at 14:57

1

Solved

The official documentation says that it is possible to use custom blocks in python code but you need to create metadata. I haven't found an example of it. My question is how to create, use and dis...
Airdry asked 4/5, 2011 at 18:36

1

I'm trying to implement an indexed accessor method for my model class in Python, as per the KVC guide. I want to use the optional ranged method, to load multiple objects at once for performance rea...
Unconcerned asked 3/9, 2009 at 23:19

2

The following code which worked fine under OS X 10.5 now fails on 10.6: @IBAction def addButton_(self, sender): panel = NSOpenPanel.openPanel() panel.setCanChooseDirectories_(YES) panel.setAll...
Nowell asked 28/9, 2010 at 2:48

1

I want to access the Accelerometer of my iPhone through PyObjC. Here is my Code: @objc.signature("v@:@@") def accelerometer_didAccelerate_(self, accelerometer, acceleration): msgBox = UIAlertView...
Vesicatory asked 10/3, 2011 at 21:52

2

Solved

I'm implementing an ObjC protocol as a mix-in for a PyObjC class. This protocol defines an 'out' parameter. I am unable to find any good documentation on how a Python class which implements an Ob...
Delanadelancey asked 4/12, 2010 at 12:6

2

I'm writing a small cross-platform wxPython app, however on every platform I need to use some platform-specific API. On Mac OS it can be done using PyObjC. I'm searching for tutorial on how...
Fourposter asked 14/2, 2011 at 15:39

2

I'm trying to deploy on 10.5 a PyObjC (or Cocoa-Python) application developed on Xcode 3.2.X (Snow Leopard) which runs perfectly fine on 10.6 systems. The application doesn't launch on 10.5;it cr...
Jerrilyn asked 19/7, 2010 at 14:37

3

Solved

I need to listen for global mouse events(not bound to an app) on my Mac in an app written in Python. I'm using PyObjC, but I can't figure out how to do it. Plain ObjC examples or other Python tech...
Aesthetics asked 25/2, 2010 at 20:3

2

Solved

By default, a Cocoa-Python application uses the default Python runtime which is version 2.5. How can I configure my Xcode project so that it would use the newer Python 3.0 runtime? I tried replacin...
Namesake asked 20/3, 2009 at 13:30

2

Solved

I have created a brand new project in XCode and have the following in my AppDelegate.py file: from Foundation import * from AppKit import * class MyApplicationAppDelegate(NSObject): def applicat...
Resh asked 26/9, 2008 at 19:29

2

Solved

I'm trying to write metadata to a pdf file using the following python code: from Foundation import * from Quartz import * url = NSURL.fileURLWithPath_("test.pdf") pdfdoc = PDFDocument.alloc().ini...
Alten asked 4/11, 2010 at 19:21

5

Solved

I've been wanting to have a play with either Ruby or Python while at the same time I've been wanting to do a bit of Cocoa programming. So I thought the best way to achieve both these goals is to d...
Cohla asked 9/1, 2009 at 0:16

8

Solved

I know some Python and I'm really impressed by the language's ease of use. From what I've seen of Objective-C it looks a lot less pretty, but it seems to be the lingua franca for Mac OS X dev...
Antananarivo asked 1/2, 2010 at 9:1

2

Solved

I'm getting errors like this: 2010-07-13 20:43:15.131 Python[1527:60f] main: Caught OC_PythonException: : LoginMenuSet instance has no attribute 'play_sound' That's with this code: @try {...
Lindemann asked 13/7, 2010 at 19:46

4

Solved

I have an NSInvocationOperation that would download and parse a series of NSXMLDocuments in the background to my UI responsive. My attempt at stopping the Invocation operation is to call my NSOper...
Ratable asked 18/4, 2009 at 6:10

5

Solved

Under xcode 3.2 my ObjectiveC + Python/Ruby projects can still be opened updated and compiled, but you cannot create new projects. Given that all traces of ruby and python are missing from xcode 3...
Castro asked 5/9, 2009 at 2:14

2

Solved

I have the following PyObjC script: from Foundation import NSObject import QTKit error = None capture_session = QTKit.QTCaptureSession.alloc().init() print 'capture_session', capture_session devic...
Nickienicklaus asked 16/10, 2009 at 7:16

2

Solved

Looking for help/tutorials/sample code of using python to listen to distributed notifications from applications on a mac. I know the py-objc lib is the bridge between python and mac/cocoa classes, ...
Abbeyabbi asked 19/12, 2009 at 14:59

6

Solved

I am about to start my A-Level Computing project (High School Level) which will hopefully be a point-of-sale application for Mac OS. Unfortunately, Objective-C is a little out of my league at the m...
Sedation asked 31/8, 2009 at 20:19

3

Solved

OS X 10.5.8 came with Python 2.5, and had PyObjC already installed. I installed Python 2.6 from the python.org site, and PyObjC isn't there. I can't find a download to install PyObjC on my Python...
Keg asked 31/10, 2009 at 1:55

© 2022 - 2024 — McMap. All rights reserved.