<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.python.pyobjc.devel">
    <title>gmane.comp.python.pyobjc.devel</title>
    <link>http://blog.gmane.org/gmane.comp.python.pyobjc.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5984"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5979"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5974"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5969"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5965"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5960"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5956"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5955"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5954"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5952"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5950"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5949"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5947"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5936"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5933"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5925"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5922"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5920"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5916"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5909"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5984">
    <title>Question on Bridging/Integration</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5984</link>
    <description>&lt;pre&gt;Hi there,

I'm new the whole PyObjC thing and have a simple document-bases app for which my goal is to all the user (personal project, so actually just me :P) to provide his/her (my) own filtering logic on a per-document basis.

I basically have an NSSet of objects which need to be filtered based on a user-provided logic.
As the logic should not be limited to rather primitive NSPredicates I'd like to provide a barebones in-app Python editor in which the user can define his/her logic.

There is however still one question that remained unanswered:
Being able to instantiate an Objective-C object from Python is neat, but still isolated. How do I expose a particular object instance from one language to the other?
After all I need to pass my Objective-C object to Python for evaluation and receive an answer from it in respose. 

A minimal sample function (as provided by the user at runtime) would look something like this:

def shallRejectObject(object)
if object.foo():
return True
return False

Being totally ne&lt;/pre&gt;</description>
    <dc:creator>Vincent</dc:creator>
    <dc:date>2012-05-20T20:12:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5979">
    <title>Is there an Xcode Cocoa sample that calls Python?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5979</link>
    <description>&lt;pre&gt;Hi PyObjC People,


I'm interested in calling Python routines from within a Cocoa/ObjC program.

Is there a sample Xcode project that does this?

I did see Bill Bumgarner's "Calling Python from Objective-C" example and it's helpful. But I'm hoping for a Cocoa sample in an Xcode context to work from if one is available.

I realize that this isn't purely a PyObjC question but I thought this list would be a good place to ask it on.

Sincerely,
Joel
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>Joel Norvell</dc:creator>
    <dc:date>2012-04-10T07:43:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5974">
    <title>Garbage collection in Python/Pyobjc</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5974</link>
    <description>&lt;pre&gt;I'm working on a script to convert each page of a large directory of pdfs to jpgs, using a version of this script:
http://files.macscripter.net/joy/files/pdflib.py

I am walking through a directory in Python, and calling the below function on each file. It seems that there is no garbage collection being performed on any of the objects being created below, and my searches through the docs don't seem to show an explicit way of performing garbage collection on these rather large objects. How to ensure that the below code, if called thousands of times within a Python loop isn't going to consume the entire system's memory?


def pdf2jpgs(pdfpath, pages_dir, resolution=72):
    """I am converting all pages of a PDF file to JPG images."""
    
    pdfdata = NSData.dataWithContentsOfFile_(pdfpath)
    pdfrep = NSPDFImageRep.imageRepWithData_(pdfdata)
    pagecount = pdfrep.pageCount()
    for i in range(0, pagecount):
        pdfrep.setCurrentPage_(i)
        pdfimage = NSImage.alloc().init()
        pdfimage.addRep&lt;/pre&gt;</description>
    <dc:creator>Peter Bernheim</dc:creator>
    <dc:date>2012-01-02T20:14:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5969">
    <title>Getting a better stack trace with PyObjc possible?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5969</link>
    <description>&lt;pre&gt;hi,

I looked around the web and more specific stack overflow: I was hoping if
there is something I can do to have a better stack trace from pyobjc/python.

For example my end users send me this, after a hard crash.

0 libobjc.A.dylib 0x99b51c22 (anonymous
namespace)::AutoreleasePoolPage::pop(void*) + 350
1 com.apple.CoreFoundation 0x97b2c515 _CFAutoreleasePoolPop + 53
2 com.apple.Foundation 0x96316b87 -[NSAutoreleasePool release] + 131
3 com.apple.CoreFoundation 0x97b01749 CFRelease + 169
4 _objc.so 0x04019c21 object_dealloc + 257
5 org.python.python 0x01c6e2cf subtype_dealloc + 575
6 org.python.python 0x01c3a041 frame_dealloc + 385
7 org.python.python 0x01ced87c tb_dealloc + 156
8 org.python.python 0x01ced88c tb_dealloc + 172
9 org.python.python 0x01c52179 PyDict_DelItem + 249
10 org.python.python 0x01c52251 PyDict_DelItemString + 49
11 org.python.python 0x01cb940a PyEval_EvalFrameEx + 4810
12 org.python.python 0x01cbd6a6 PyEval_EvalFrameEx + 21862
13 org.python.python 0x01cbd6a6 PyEval_EvalFrameEx + 21862&lt;/pre&gt;</description>
    <dc:creator>Marc Van Olmen</dc:creator>
    <dc:date>2011-12-27T21:08:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5965">
    <title>PyObjC and multiprocessing module</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5965</link>
    <description>&lt;pre&gt;I found a bunch of hits for this on Google, but no answers:

I am working on a Python application that uses the multiprocessing library.
 I am trying to spawn a process and perform text-to-speech with pyttsx, but
I get the
dreaded  __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__()
 error.

Is there any way to get this working, short of switching back to threads?
 I see that the 'correct' way is to fork() and exec(), but I don't see any
way to make that compatible with the multiprocessing module's API.

Thanks,

-Trevor
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/_______________________________________________
Pyobjc-dev mailing&lt;/pre&gt;</description>
    <dc:creator>Trevor Bentley</dc:creator>
    <dc:date>2011-12-07T22:54:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5960">
    <title>Lion and pyobjc 2.2b3 Decimal compares with NSDecimalNumber compare goes in endless recursive call..</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5960</link>
    <description>&lt;pre&gt;hi,

for our project we haven't upgraded to latest version of pyobjc I just
notice we run with 2.2b3 but we have the following bug on Lion Only:

When bindings try to compare a decimal number that originally came from
Python code. It goes in endless recursive calls...

.... (this last few lines are repeated over and over again...

#3515 0x02edf84d in _ffi_call_SYSV at x86-darwin.S:74
#3516 0x02edfc01 in ffi_call
#3517 0x02ef8d79 in PyObjCFFI_Caller
#3518 0x02f1ddbd in objcsel_call
#3519 0x0289f315 in PyObject_Call
#3520 0x02950677 in PyEval_EvalFrameEx
#3521 0x02953e9d in PyEval_EvalCodeEx
#3522 0x028d0a36 in function_call
#3523 0x0289f315 in PyObject_Call
#3524 0x028b18e6 in instancemethod_call
#3525 0x0289f315 in PyObject_Call
#3526 0x0290706b in half_richcompare
#3527 0x0290714b in slot_tp_richcompare
#3528 0x028e8dd7 in try_rich_compare
#3529 0x028eb60e in PyObject_Compare
#3530 0x02f11f14 in -[OC_PythonNumber compare:]
#3531 0x94ea8f68 in -[NSDecimalNumber compare:]
#3532 0x94f0dc7c in -[NSDecimalNumber&lt;/pre&gt;</description>
    <dc:creator>Marc Van Olmen</dc:creator>
    <dc:date>2011-11-22T17:37:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5956">
    <title>strange problem using NSWorkspace/NSTask to startPyObjC apps</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5956</link>
    <description>&lt;pre&gt;Hey all,

I'm running into a strange problem with PyObjC-based apps.

The situation: I'm working on a .mailbundle (a plug-in for Apple Mail). From that plug-in, I want to start a PyObjC-based application. No matter what, this fails: the application gets a SIGSEGV (I'll post some more information below).

I've used pretty much all methods of starting the application (NSWorkspace, NSTask, even executing "open -a APP" from the Python subprocess module), and it keeps failing. Of course, the app works without problems when started manually. Starting the app from a Python-shell using [NSWorkspace launchApplication:] works, too. Just not from within the plug-in.

Even the simplest 'app' fails:
-snip-
from Foundation import *

class MyTestClass(NSObject): pass
-snip-

Same thing: SIGSEGV.

Starting other apps (like Safari) isn't a problem, so it doesn't seem to be some sandbox-type blocking.

Below is the relevant part of the crashlog. All I've been able to find out is that objc_msgSend_vtable3 is an Objective-C run&lt;/pre&gt;</description>
    <dc:creator>Robert Klep</dc:creator>
    <dc:date>2011-11-21T06:08:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5955">
    <title>What version of Xcode for lion?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5955</link>
    <description>&lt;pre&gt;Hi,

I just installed and Lion in Snow Leopard xoode pyobjc runs in 4.1,which
version should install Xcode?

Thanks

&lt;/pre&gt;</description>
    <dc:creator>Jair Gaxiola</dc:creator>
    <dc:date>2011-11-12T00:57:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5954">
    <title>QuickLook.framework</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5954</link>
    <description>&lt;pre&gt;Are there going to be any bindings implemented for this framework?

Thanks
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
&lt;/pre&gt;</description>
    <dc:creator>Lee Treveil</dc:creator>
    <dc:date>2011-11-11T00:52:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5952">
    <title>PyObjC on Lion</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5952</link>
    <description>&lt;pre&gt;Hi,

Short version: Does there exsit a working version of PyObcC and AddressBook
for Lion?

Long version: ...

I have been using the AddressBook 2.3 wrapper with Python 2.6.6, PyObjC v2.3
(all built using MacPorts) on OS X 10.6 Snow Leopard. After upgrading to OS
X 10.7.1 Lion, although most of AddressBook seems to continue working, it no
longer reads the postal address fields.

So, I tried reinstalling a fresh version (using MacPorts): Python
2.7.2, PyObjC v2.3 and AddressBook 2.3

I have tried Ronald Oussoren's latest work on bitbucket, but I haven't been
able to figure out how to install it.

Thanks so much for any help.

Gordon
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev_______________________________________________
Pyobjc-dev maili&lt;/pre&gt;</description>
    <dc:creator>Gordon Watson</dc:creator>
    <dc:date>2011-08-28T15:31:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5950">
    <title>selector in pyobjc</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5950</link>
    <description>&lt;pre&gt;Hello,

Try to translate the following code to PyObjC
(https://github.com/shpakovski/Popup/blob/master/Popup/MenubarController.m),
but I have a question about how to translate the line number 20 of the
selector

_statusItemView.action = &amp;lt; at &amp;gt; selector (togglePanel:);

Does not work with

statusItemView.action (selector (togglePanel))

Thanks

&lt;/pre&gt;</description>
    <dc:creator>Jair Gaxiola</dc:creator>
    <dc:date>2011-08-10T06:56:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5949">
    <title>[ pyobjc-Bugs-3387767 ] NSLog raises exception onnon-ascii text</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5949</link>
    <description>&lt;pre&gt;Bugs item #3387767, was opened at 2011-08-07 14:28
Message generated for change (Tracker Item Submitted) made by eaganjr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&amp;amp;atid=114534&amp;amp;aid=3387767&amp;amp;group_id=14534

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: James Eagan (eaganjr)
Assigned to: Nobody/Anonymous (nobody)
Summary: NSLog raises exception on non-ascii text

Initial Comment:
It looks like the fix for bug ID 3085651 broke support for non-ascii (e.g., UTF8) strings for NSLog.


[Using the standard system Python in 10.7.0]

Frog:~ $ python
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
2011-08-07 13:22:46.578 P&lt;/pre&gt;</description>
    <dc:creator>SourceForge.net</dc:creator>
    <dc:date>2011-08-07T12:28:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5947">
    <title>Patch for GNUstep support</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5947</link>
    <description>&lt;pre&gt;Hello,

Over the past few days, we've ported PyObjC (trunk) to GNUstep. It's 
known to compile and work on:

   1. GCC Objective-C runtime &amp;lt; 4.6
   2. GCC Objective-C runtime &amp;gt;= 4.6
   3. GNUstep Objective-C runtime (libobjc-2-1.5).

To get this to work, you need GNUstep base and corebase from trunk.

We've also integrated successfully PyObjC in the SOGo code (www.sogo.nu) 
- so it's now possible to fully extend SOGo's code using Python.

Here is the patch - which could hopefully be included.

Thanks,

&lt;/pre&gt;</description>
    <dc:creator>Ludovic Marcotte</dc:creator>
    <dc:date>2011-08-01T14:40:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5936">
    <title>Cocoa, httplib and threads?</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5936</link>
    <description>&lt;pre&gt;I'm trying to use httplib to send an http request in
a background thread. It works fine on its own, but when
I do it inside a Cocoa application, the thread hangs
as soon as it tries to send the request.

It doesn't seem to be a GIL problem, because I can do
other things in the thread leading up to that point.
It's just sending the request that seems to block.

Is there anything I should be aware of when using
the threading module in conjunction with pyobjc?

&lt;/pre&gt;</description>
    <dc:creator>Greg Ewing</dc:creator>
    <dc:date>2011-07-15T01:43:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5933">
    <title>Using delegates on iOS</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5933</link>
    <description>&lt;pre&gt;  Hi.
    When I load UIKit with
        myUIKit = objc.loadBundle("UIKit", globals(),
"/System/Library/Frameworks/UIKit.framework")
      I import a lot of symbols, but a few protocols such as
UIImagePickerControllerDelegate and UINavigationControllerDelegate are not
loaded with this occasion (probably because they are not used in any any
other place).

    Could you please tell me if you have an idea on what goes wrong when
using UIImagePickerController with UIImagePickerControllerDelegate in the
code below.
    The symptom is the following: none of the methods of MyDelegate don't
get called, although ipc.takePicture() should call them.
    Documentation on how to use UIImagePickerController at:
        -
http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/CameraAndPhotoLib_TopicsForIOS/Articles/TakingPicturesAndMovies.html#//apple_ref/doc/uid/TP40010406
        -
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIImagePickerController_Class/UIImagePickerControl&lt;/pre&gt;</description>
    <dc:creator>ender123&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2011-07-08T21:54:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5925">
    <title>PyObjC on iOS - access camera APIs</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5925</link>
    <description>&lt;pre&gt; Hi.
   I am trying to implement in PyObjC the program available at

https://github.com/erica/iphone-3.0-cookbook-/tree/b8ca8905d17015839a0917e1dcd407d055890236/C07-Images/04-Snapping%20Images.

   Although I am a "beginner" in PyObjC, I spent a couple of days trying to
very seriously translate this script to PyObjC and tried my best to find out
all errors.
   However, it doesn't work: the application doesn't execute normally after
entering viewDidLoad() - it doesn't change appearance of UI as specified
there. I guess it has to do with the fact I am not loading (or using the
specification) of the TestBedViewController.xib file, which describes
properties of TestBedViewController - I translated only the main.m and did
not use by any means the TestBedViewController.xib - I do not know how can I
load this file in PyObjC on iOS...
   Please find the PyObjC code I wrote so far here:
http://mobile-revival.110mb.com/ReVival/HelloPython.py .

   I run my PyObjC scripts on iOS version 3.1.2. PyObjC is version 1946-4,&lt;/pre&gt;</description>
    <dc:creator>ender123&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2011-06-29T22:48:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5922">
    <title>NSWindow</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5922</link>
    <description>&lt;pre&gt;Hello,
I'm starting with PyObjC and am having some trouble creating windows
I am not a beginner at either python or cocoa by the way.

Here is what i am trying (both with macports python 2.6 and builtin python 2.6) on 10.6.8

from AppKit import *
a=NSWindow.alloc().init()

simply this returns an error:

Wed Jun 29 16:23:09 TCi7.local python[10060] &amp;lt;Error&amp;gt;: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection
Wed Jun 29 16:23:09 TCi7.local python[10060] &amp;lt;Error&amp;gt;: kCGErrorInvalidConnection: CGSNewWindowWithOpaqueShape: Invalid connection
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
objc.error: NSInternalInconsistencyException - Error (1002) creating CGSWindow


Would anyone have any recommendations?
T.


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and&lt;/pre&gt;</description>
    <dc:creator>Thomas Cool</dc:creator>
    <dc:date>2011-06-29T21:23:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5920">
    <title>Font rendering weirdness with Courier New</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5920</link>
    <description>&lt;pre&gt;When I draw text in PyGUI using Courier New, it comes
out too far down by about half the height of the lower
case letters.

The problem only seems to affect this particular font;
all the other fonts I've tried are positioned correctly.

This is the code I'm using to get the baseline of the
text positioned at (x, y):

   h = ns_font.defaultLineHeightForFont()
   d = -ns_font.descender()
   ns_point = NSPoint(x, y - h + d)
   ns_string.drawAtPoint_withAttributes_(ns_point, ns_attrs)

Am I doing anything wrong here? I've checked the values
that Cocoa is getting for defaultLineHeightForFont and
descender, and they seem to be correct, but the text comes
out in the wrong place when using that font.

&lt;/pre&gt;</description>
    <dc:creator>Greg Ewing</dc:creator>
    <dc:date>2011-06-26T07:55:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5916">
    <title>New Bitbucket/Mercurial copy of the SVN repository</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5916</link>
    <description>&lt;pre&gt;I notice that at the end of last year Ronald said he intended to move the PyObjC repository from SVN to mercurial, to join py2app and friends which have already been transferred.

In an attempt to be helpful and for my own purposes I have successfully (I hope) created a copy of the PyObjC SVN repository using mercurial at bitbucket: https://bitbucket.org/lakka/pyobjc

All history/branches/tags have been preserved (though some of them might usefully be closed off), but please open an issue if you find any problems. I would be delighted if Ronald wanted to move/clone this into his account!  

I hope soon to be able to contribute to the project some work I have done reorganising the Sphinx documentation and updating the examples.

Lawrence
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility C&lt;/pre&gt;</description>
    <dc:creator>Lawrence Akka</dc:creator>
    <dc:date>2011-06-19T10:39:49</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5909">
    <title>Problem with NSText:setString</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5909</link>
    <description>&lt;pre&gt;Hello,

I have a GUI application built with interface builder. One of the windows has a NSTextView in it. I connected it to an object also referenced in the interface builder file.
The goal is to write to the NSTextView from a background trhead that does some task. I launch the thread with a call to 

NSThread.alloc().initWithTarget_selector_object_()

The behaviour I am getting is erratic. Most times it blocks on the call to the NSTextView's setString_() method and the application hangs. If I run the code on the main thread it runs fine.

How do I do this from a background thread ? The idea is to keep the application responsive.

I am on :
snow leopard (10.6.7)
pyObjc (I think it is 2.2b3 (can you tell me how to really check the version ?))

Many thanks
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant w&lt;/pre&gt;</description>
    <dc:creator>Daniel Luis dos Santos</dc:creator>
    <dc:date>2011-06-13T12:07:47</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5908">
    <title>[ pyobjc-Bugs-3313601 ] NSBezierPath memory leak</title>
    <link>http://comments.gmane.org/gmane.comp.python.pyobjc.devel/5908</link>
    <description>&lt;pre&gt;Bugs item #3313601, was opened at 2011-06-08 20:14
Message generated for change (Tracker Item Submitted) made by gcewing
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&amp;amp;atid=114534&amp;amp;aid=3313601&amp;amp;group_id=14534

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Gregory Ewing (gcewing)
Assigned to: Nobody/Anonymous (nobody)
Summary: NSBezierPath memory leak

Initial Comment:
NZBezierPath.appendBezierPathWithPoints_count_ appears to leak memory
under some circumstances depending on the type of object passed in.

Observed using MacOSX 10.6.4, Python 2.7, PyObjC 2.3

Here are two test cases, one of which leaks and the other doesn't.

#  Case 1 - Passing a list of tuples
#  This one leaks

from AppKit import NSBezierPath, NSAutoreleasePool

def test():
    path = NSBezierPath.bezierPa&lt;/pre&gt;</description>
    <dc:creator>SourceForge.net</dc:creator>
    <dc:date>2011-06-08T08:14:42</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.pyobjc.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.pyobjc.devel</link>
  </textinput>
</rdf:RDF>

