#8 Merged
Repository
tito tito
Branch
osx-clean-pyobjc
Repository
pygame pygame
Branch
default

Clean previous mac_scrap.py using pyobj, in favor of a native implementation

Author
  1. Mathieu Virbel avatarMathieu Virbel
Reviewers
Description
No description

Comments (3)

  1. illume

    There is an error on OSX 10.4. If it's too old to use the API you are using, and too hard to fix, can we wrap a version check around it? So on 10.4 and below it compiles but does nothing.

        gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Ddarwin -I/Library/Frameworks/SDL.framework/Versions/Current/Headers -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/sdlmain_osx.m -o build/temp.macosx-10.3-ppc-2.5/src/sdlmain_osx.o
        src/sdlmain_osx.m: In function '_ScrapGet':
        src/sdlmain_osx.m:280: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:280: warning: (Messages without a matching method signature
        src/sdlmain_osx.m:280: warning: will be assumed to return 'id' and accept
        src/sdlmain_osx.m:280: warning: '...' as arguments.)
        src/sdlmain_osx.m:280: error: 'NSStringPboardType' undeclared (first use in this function)
        src/sdlmain_osx.m:280: error: (Each undeclared identifier is reported only once
        src/sdlmain_osx.m:280: error: for each function it appears in.)
        src/sdlmain_osx.m:280: warning: no '-stringForType:' method found
        src/sdlmain_osx.m:282: warning: assignment makes pointer from integer without a cast
        src/sdlmain_osx.m: In function '_ScrapGetTypes':
        src/sdlmain_osx.m:291: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:292: warning: no '-types' method found
        src/sdlmain_osx.m:293: error: nested functions are disabled, use -fnested-functions to re-enable
        src/sdlmain_osx.m:293: error: syntax error before 'in'
        src/sdlmain_osx.m: In function '_ScrapPut':
        src/sdlmain_osx.m:313: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:315: error: 'NSStringPboardType' undeclared (first use in this function)
        src/sdlmain_osx.m:315: warning: no '-declareTypes:owner:' method found
        src/sdlmain_osx.m:316: warning: no '-setString:forType:' method found
        src/sdlmain_osx.m: In function '_ScrapContains':
        src/sdlmain_osx.m:337: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:338: warning: no '-types' method found
        src/sdlmain_osx.m:339: error: nested functions are disabled, use -fnested-functions to re-enable
        src/sdlmain_osx.m:339: error: syntax error before 'in'
        src/sdlmain_osx.m: In function '_ScrapLost':
        src/sdlmain_osx.m:352: error: 'NSStringPboardType' undeclared (first use in this function)
        src/sdlmain_osx.m:353: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:354: warning: no '-availableTypeFromArray:' method found
        src/sdlmain_osx.m: In function '_ScrapGet':
        src/sdlmain_osx.m:280: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:280: warning: (Messages without a matching method signature
        src/sdlmain_osx.m:280: warning: will be assumed to return 'id' and accept
        src/sdlmain_osx.m:280: warning: '...' as arguments.)
        src/sdlmain_osx.m:280: error: 'NSStringPboardType' undeclared (first use in this function)
        src/sdlmain_osx.m:280: error: (Each undeclared identifier is reported only once
        src/sdlmain_osx.m:280: error: for each function it appears in.)
        src/sdlmain_osx.m:280: warning: no '-stringForType:' method found
        src/sdlmain_osx.m:282: warning: assignment makes pointer from integer without a cast
        src/sdlmain_osx.m: In function '_ScrapGetTypes':
        src/sdlmain_osx.m:291: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:292: warning: no '-types' method found
        src/sdlmain_osx.m:293: error: nested functions are disabled, use -fnested-functions to re-enable
        src/sdlmain_osx.m:293: error: syntax error before 'in'
        src/sdlmain_osx.m: In function '_ScrapPut':
        src/sdlmain_osx.m:313: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:315: error: 'NSStringPboardType' undeclared (first use in this function)
        src/sdlmain_osx.m:315: warning: no '-declareTypes:owner:' method found
        src/sdlmain_osx.m:316: warning: no '-setString:forType:' method found
        src/sdlmain_osx.m: In function '_ScrapContains':
        src/sdlmain_osx.m:337: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:338: warning: no '-types' method found
        src/sdlmain_osx.m:339: error: nested functions are disabled, use -fnested-functions to re-enable
        src/sdlmain_osx.m:339: error: syntax error before 'in'
        src/sdlmain_osx.m: In function '_ScrapLost':
        src/sdlmain_osx.m:352: error: 'NSStringPboardType' undeclared (first use in this function)
        src/sdlmain_osx.m:353: warning: no '+generalPasteboard' method found
        src/sdlmain_osx.m:354: warning: no '-availableTypeFromArray:' method found
        lipo: can't figure out the architecture type of: /var/tmp//cct51hqX.out
        error: command 'gcc' failed with exit status 1
    
    
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.