1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

Error importing NSOutlineViewDataSource in PyObjC code

Discussion in 'Mac Programming' started by cjcaufield, Feb 28, 2009.

  1. macrumors newbie

    #1
    Hi everyone, first post. :)

    I'm having a problem importing NSOutlineViewDataSource in a Python Cocoa application. The problem is easily reproduced by creating a new Python Cocoa application (document based), and adding the following to main.py just before AppHelper.runEventLoop():

    from AppKit import NSOutlineViewDataSource

    The error I get is:

    Traceback (most recent call last):
    File "/Users/colin/Desktop/Untitled/build/Debug/Untitled.app/Contents/Resources/main.py", line 19, in <module>
    from AppKit import NSOutlineViewDataSource
    ImportError: cannot import name NSOutlineViewDataSource

    Anyone know what the deal is? Thanks.
     
  2. macrumors newbie

    #2
    Forgot to mention, my machine is running 10.5.6 and, as far as I know, everything is up to date.
     
  3. macrumors member

    #3
    You can't import it and you don't need to import it.
     
  4. macrumors newbie

    #4
    Care to be more specific?
     
  5. macrumors regular

    #5
  6. macrumors newbie

    #6
    Thanks, hhas.
     

Share This Page