pyobjc-dev Mailing List for PyObjC (Page 227)
Brought to you by:
ronaldoussoren
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(9) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(1) |
Feb
(2) |
Mar
(3) |
Apr
(30) |
May
(18) |
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2002 |
Jan
(7) |
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
(3) |
Jul
(13) |
Aug
|
Sep
(23) |
Oct
(180) |
Nov
(291) |
Dec
(95) |
2003 |
Jan
(338) |
Feb
(352) |
Mar
(97) |
Apr
(46) |
May
(226) |
Jun
(184) |
Jul
(145) |
Aug
(141) |
Sep
(69) |
Oct
(161) |
Nov
(96) |
Dec
(90) |
2004 |
Jan
(66) |
Feb
(87) |
Mar
(98) |
Apr
(132) |
May
(115) |
Jun
(68) |
Jul
(150) |
Aug
(92) |
Sep
(59) |
Oct
(52) |
Nov
(17) |
Dec
(75) |
2005 |
Jan
(84) |
Feb
(191) |
Mar
(133) |
Apr
(114) |
May
(158) |
Jun
(185) |
Jul
(62) |
Aug
(28) |
Sep
(36) |
Oct
(88) |
Nov
(65) |
Dec
(43) |
2006 |
Jan
(85) |
Feb
(62) |
Mar
(92) |
Apr
(75) |
May
(68) |
Jun
(101) |
Jul
(73) |
Aug
(37) |
Sep
(91) |
Oct
(65) |
Nov
(30) |
Dec
(39) |
2007 |
Jan
(24) |
Feb
(28) |
Mar
(10) |
Apr
(2) |
May
(18) |
Jun
(16) |
Jul
(21) |
Aug
(6) |
Sep
(30) |
Oct
(31) |
Nov
(153) |
Dec
(31) |
2008 |
Jan
(63) |
Feb
(70) |
Mar
(47) |
Apr
(24) |
May
(59) |
Jun
(22) |
Jul
(12) |
Aug
(7) |
Sep
(14) |
Oct
(26) |
Nov
(5) |
Dec
(5) |
2009 |
Jan
(10) |
Feb
(41) |
Mar
(70) |
Apr
(88) |
May
(49) |
Jun
(62) |
Jul
(34) |
Aug
(15) |
Sep
(55) |
Oct
(40) |
Nov
(67) |
Dec
(21) |
2010 |
Jan
(60) |
Feb
(17) |
Mar
(26) |
Apr
(26) |
May
(29) |
Jun
(4) |
Jul
(21) |
Aug
(21) |
Sep
(10) |
Oct
(12) |
Nov
(3) |
Dec
(19) |
2011 |
Jan
(3) |
Feb
(13) |
Mar
(8) |
Apr
(8) |
May
(17) |
Jun
(20) |
Jul
(21) |
Aug
(7) |
Sep
|
Oct
|
Nov
(9) |
Dec
(11) |
2012 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
(4) |
Jun
(14) |
Jul
(5) |
Aug
(2) |
Sep
(15) |
Oct
(2) |
Nov
(23) |
Dec
(1) |
2013 |
Jan
(8) |
Feb
(1) |
Mar
|
Apr
|
May
(5) |
Jun
(1) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(12) |
Nov
(10) |
Dec
(3) |
2014 |
Jan
(7) |
Feb
(14) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(11) |
Jul
(10) |
Aug
(4) |
Sep
|
Oct
(8) |
Nov
(1) |
Dec
(2) |
2015 |
Jan
(9) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(7) |
Jun
|
Jul
(5) |
Aug
(6) |
Sep
|
Oct
(1) |
Nov
(4) |
Dec
|
2016 |
Jan
(1) |
Feb
(1) |
Mar
(4) |
Apr
(2) |
May
(1) |
Jun
|
Jul
(6) |
Aug
(8) |
Sep
(21) |
Oct
(17) |
Nov
|
Dec
(36) |
2017 |
Jan
(6) |
Feb
(2) |
Mar
(4) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(6) |
2018 |
Jan
(2) |
Feb
(3) |
Mar
(3) |
Apr
(14) |
May
(2) |
Jun
(2) |
Jul
(4) |
Aug
(3) |
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
(6) |
2019 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
(2) |
Dec
(1) |
2021 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(5) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2025 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Bill D. <wdd...@ma...> - 2003-07-05 20:07:44
|
Cool. That works. Where did the 2.95 default setting come from? Isn't there a place to set this globally? Thanks! On Saturday, July 5, 2003, at 02:49 PM, Ronald Jaramillo wrote: > For each target you have, under Settings/Expert View you should add > two entries to "Build Settings": > CC = /usr/bin/gcc-3.3 and CPLUSPLUS=/usr/bin/g++-3.3 |
From: Ronald J. <ro...@ma...> - 2003-07-05 19:49:14
|
For each target you have, under Settings/Expert View you should add two entries to "Build Settings": CC = /usr/bin/gcc-3.3 and CPLUSPLUS=/usr/bin/g++-3.3 /mvh Ronald On Saturday, July 5, 2003, at 09:38 PM, Bill Dozier wrote: > Ronald, > > this is confusing: > > [gigabook:~/build/pyobjc-1.0b1] daddy% which gcc > /usr/bin/gcc > [gigabook:~/build/pyobjc-1.0b1] daddy% gcc -v > Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs > Thread model: posix > gcc version 3.3 20030304 (Apple Computer, Inc. build 1435) > [gigabook:~/build/pyobjc-1.0b1] daddy% > [gigabook:~/build/pyobjc-1.0b1] daddy% gcc_select > Current default compiler: > gcc version 3.3 20030304 (Apple Computer, Inc. build 1435) > [gigabook:~/build/pyobjc-1.0b1] daddy% > > > However, PB only gives 2.95 and 3.1 as choices (3.1 is selected). > > In the build window, though: > > /Developer/Private/jam -d1 -j1 > JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase > JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=2.95.2 > BUILD_STYLE=Development > CPP_HEADERMAP_FILE=/Users/daddy/Desktop/pydoctest/build/ > pydoctest.build/pydoctest.build/pydoctest.hmap > SRCROOT=/Users/daddy/Desktop/pydoctest > OBJROOT=/Users/daddy/Desktop/pydoctest/build > SYMROOT=/Users/daddy/Desktop/pydoctest/build > DSTROOT=/tmp/pydoctest.dst > > ... > > BuildPhase <CopyResources>pydoctest.app > > CompileC > /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ > Objects-normal/ppc/bin-python-main.o > /usr/bin/gcc2 -c -F/Users/daddy/Desktop/pydoctest/build > -I/Users/daddy/Desktop/pydoctest/build/include -arch ppc -fno-common > -fpascal-strings -O0 -Wmost -Wno-four-char-constants > -Wno-unknown-pragmas -pipe -g -precomp-trustfile > /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ > TrustedPrecomps.txt > -Wp,-header-mapfile,/Users/daddy/Desktop/pydoctest/build/ > pydoctest.build/pydoctest.build/pydoctest.hmap bin-python-main.m > -o > /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ > Objects-normal/ppc/bin-python-main.o > > > I am neither a PB nor a jam expert. Where is _DEFAULT_GCC_VERSION set? > > Thanks, > Bill > > > On Saturday, July 5, 2003, at 02:26 PM, Ronald Oussoren wrote: > >> >> On Saturday, 5 July, 2003, at 20:43, Bill Dozier wrote: >> >>> Hi All, >>> >>> bin-python-main.m does not compile. There are errors due to >>> variables not being declared early enough. >>> >>> Does this code compile for anyone else? I'd love to be able to >>> declare variables later, C++ style, if obj-c can allow it. >> >> What compiler are you using? The default compiler on OSX 10.2 should >> be gcc 3.1, and that allows "C++ style" declarations, GCC 2.95 >> doesn't. You can check the default compiler using 'gcc_select'. >> >> Ronald >> > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/ > 01 > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |
From: Ronald O. <ous...@ci...> - 2003-07-05 19:48:54
|
On Saturday, 5 July, 2003, at 21:38, Bill Dozier wrote: > Ronald, > > this is confusing: > > [gigabook:~/build/pyobjc-1.0b1] daddy% which gcc > /usr/bin/gcc > [gigabook:~/build/pyobjc-1.0b1] daddy% gcc -v > Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs > Thread model: posix > gcc version 3.3 20030304 (Apple Computer, Inc. build 1435) > [gigabook:~/build/pyobjc-1.0b1] daddy% > [gigabook:~/build/pyobjc-1.0b1] daddy% gcc_select > Current default compiler: > gcc version 3.3 20030304 (Apple Computer, Inc. build 1435) > [gigabook:~/build/pyobjc-1.0b1] daddy% This looks good. Except for the version of gcc, GCC claims to be 3.1 on my system. You aren't using pre-elease software are you? ;-) ;-) > > > However, PB only gives 2.95 and 3.1 as choices (3.1 is selected). > > In the build window, though: > > /Developer/Private/jam -d1 -j1 > JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase > JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=2.95.2 > BUILD_STYLE=Development > CPP_HEADERMAP_FILE=/Users/daddy/Desktop/pydoctest/build/ > pydoctest.build/pydoctest.build/pydoctest.hmap > SRCROOT=/Users/daddy/Desktop/pydoctest > OBJROOT=/Users/daddy/Desktop/pydoctest/build > SYMROOT=/Users/daddy/Desktop/pydoctest/build > DSTROOT=/tmp/pydoctest.dst That is odd, this seems to indicate that PB actually uses gcc 2.95. > I am neither a PB nor a jam expert. Where is _DEFAULT_GCC_VERSION set? Me neither, I hadn't even heard of jam before. I don't use PB very often, maybe one of the others can help out. Ronald |
From: Bill D. <wdd...@ma...> - 2003-07-05 19:38:29
|
Ronald, this is confusing: [gigabook:~/build/pyobjc-1.0b1] daddy% which gcc /usr/bin/gcc [gigabook:~/build/pyobjc-1.0b1] daddy% gcc -v Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc. build 1435) [gigabook:~/build/pyobjc-1.0b1] daddy% [gigabook:~/build/pyobjc-1.0b1] daddy% gcc_select Current default compiler: gcc version 3.3 20030304 (Apple Computer, Inc. build 1435) [gigabook:~/build/pyobjc-1.0b1] daddy% However, PB only gives 2.95 and 3.1 as choices (3.1 is selected). In the build window, though: /Developer/Private/jam -d1 -j1 JAMBASE=/Developer/Makefiles/pbx_jamfiles/ProjectBuilderJambase JAMFILE=- build ACTION=build _DEFAULT_GCC_VERSION=2.95.2 BUILD_STYLE=Development CPP_HEADERMAP_FILE=/Users/daddy/Desktop/pydoctest/build/ pydoctest.build/pydoctest.build/pydoctest.hmap SRCROOT=/Users/daddy/Desktop/pydoctest OBJROOT=/Users/daddy/Desktop/pydoctest/build SYMROOT=/Users/daddy/Desktop/pydoctest/build DSTROOT=/tmp/pydoctest.dst ... BuildPhase <CopyResources>pydoctest.app CompileC /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ Objects-normal/ppc/bin-python-main.o /usr/bin/gcc2 -c -F/Users/daddy/Desktop/pydoctest/build -I/Users/daddy/Desktop/pydoctest/build/include -arch ppc -fno-common -fpascal-strings -O0 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -pipe -g -precomp-trustfile /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ TrustedPrecomps.txt -Wp,-header-mapfile,/Users/daddy/Desktop/pydoctest/build/ pydoctest.build/pydoctest.build/pydoctest.hmap bin-python-main.m -o /Users/daddy/Desktop/pydoctest/build/pydoctest.build/pydoctest.build/ Objects-normal/ppc/bin-python-main.o I am neither a PB nor a jam expert. Where is _DEFAULT_GCC_VERSION set? Thanks, Bill On Saturday, July 5, 2003, at 02:26 PM, Ronald Oussoren wrote: > > On Saturday, 5 July, 2003, at 20:43, Bill Dozier wrote: > >> Hi All, >> >> bin-python-main.m does not compile. There are errors due to >> variables not being declared early enough. >> >> Does this code compile for anyone else? I'd love to be able to >> declare variables later, C++ style, if obj-c can allow it. > > What compiler are you using? The default compiler on OSX 10.2 should > be gcc 3.1, and that allows "C++ style" declarations, GCC 2.95 > doesn't. You can check the default compiler using 'gcc_select'. > > Ronald > |
From: Ronald O. <ous...@ci...> - 2003-07-05 19:27:59
|
On Saturday, 5 July, 2003, at 20:43, Bill Dozier wrote: > Hi All, > > bin-python-main.m does not compile. There are errors due to variables > not being declared early enough. > > Does this code compile for anyone else? I'd love to be able to declare > variables later, C++ style, if obj-c can allow it. What compiler are you using? The default compiler on OSX 10.2 should be gcc 3.1, and that allows "C++ style" declarations, GCC 2.95 doesn't. You can check the default compiler using 'gcc_select'. Ronald |
From: Bill D. <wdd...@ma...> - 2003-07-05 18:43:12
|
Hi All, bin-python-main.m does not compile. There are errors due to variables not being declared early enough. Does this code compile for anyone else? I'd love to be able to declare variables later, C++ style, if obj-c can allow it. Thanks. |
From: roderik <run...@si...> - 2003-07-05 18:12:26
|
Hi list, my first posting. Just returned to the apple platform after several years in linux land. Found pyObjC, and it looks awesome. I've been programming with PyQT for the last couple of years so it's about time to learn something new. Question nr. 1: Book recommendations. Besides from Apple's documentation..what kind of book would be suitable for one with some C++ knowledge and no ObjC knowledge? Question nr. 2: PyObjC 1.0b installs three project templates. The "Cocoa-Python Application" template seems less than useful to me as it's basically a "Hello world" app..serves as a good example, but as a template?..or am I missing something here. regards /rune Rune Hansen run...@si... "Java is great for engineering next generation solutions to enable maximization of developer income by means of enhanced buzzword use" |
From: Ronald O. <ous...@ci...> - 2003-07-05 14:54:44
|
I've uploaded the sources and a binary installer for PyObjC 1.0b1 to SF. The official announcement will go out on Sunday, unless someone finds a serious bug before then. Have fun, Ronald ----------------------------- Announcement text ---------------------------- PyObjC 1.0b1 is now available for download at http://pyobjc.sourceforge.net/ PyObjC is a bridge between Python and Objective-C. It allows full featured Cocoa applications to be written in pure Python. It is also easy to use other frameworks containing Objective-C class libraries from Python and to mix in Objective-C, C and C++ source. Python is a highly dynamic programming language with a shallow learning curve. It combines remarkable power with very clear syntax. The installer package includes a number of Project Builder templates for easily creating new Cocoa-Python projects, as well as support for syntax-coloring Python files in Project Builder. PyObjC also supports full introspection of Objective-C classes and direct invocation of Objective-C APIs from the interactive interpreter. PyObjC requires MacOS X 10.2 or later. PyObjC works both with the Apple provided Python installation in MacOS X 10.2 (and later) and with MacPython 2.3b1. Users of MacPython 2.3b1 can install PyObjC though the PackageManager application. PyObjC 1.0b1 includes numerous improvements over earlier versions, including: * Improved performance and stability * Better tutorials and examples * Initial support for MacOS X 10.1 * Support for the WebKit framework * Write plugin bundles in Python (requires Python 2.3b1) PyObjC is released with an open source license. |
From: leuilda <Mor...@ya...> - 2003-07-05 11:17:54
|
Hello, Hello, WOULD YOU LIKE TO HAVE YOUR MESSAGE SEEN BY OVER 15.7 MILLION OPT-IN, TARGETED PEOPLE DAILY? PLUS RECEIVE OVER $2,000 WORTH OF FREE EMAIL MARKETING SOFTWARE! Below contains all the information you will ever need to market your product or service on the Internet. If you have a product, service, or message that you would like Thousands, Hundreds of Thousands, or even Millions of people to see, you have several options. Traditional methods include print advertising, direct mail, radio, and television advertising. They are all effective, but they all have two catches: They're EXPENSIVE and TIME CONSUMING. Not only that, you only get ONE SHOT at making your message heard by the right people. Also, Internet Search Engine Submissions, Classified Ads, Newsgroup Postings simply DO NOT WORK effectively. Now this has all changed! Thanks to the top programmers in the world and their NEW EMAIL TECHNOLOGY, You can send millions of email messages daily for FREE...Without getting terminated from your current Internet connection! It's very simple to do and you can be increasing your sales within minutes of installing this extraordinary new software! Besides...It's the only real way to advertise on the Internet that works...Period! BELOW IS JUST A SAMPLE OF WHAT WE HAVE TO OFFER YOU... >>>WE WILL SUPPLY YOU WITH OVER 15.7 MILLION OPT-IN EMAIL ADDRESSES TO GET YOU STARTED RIGHT AWAY! >>>FREE EMAIL ADDRESS DOWNLOADS FOR LIFE! >>>YOU WILL RECEIVE OVER $2,000 WORTH OF EMAIL MARKETING SOFTWARE FREE! Including...... BROADCAST EMAIL SENDING SOFTWARE...(send millions of email advertisements daily with a few clicks of your mouse. New built in stealth technology). Be one of the first people to use it. We used the same software to send you this email message. EMAIL EXTRACTION SOFTWARE...(Retreive new targeted email addresses daily. Hundreds of thousands of them) LIST MANAGEMENT SOFTWARE...(Keep your lists clean, opt-in and manage all your remove requests, leads, sales etc...) POP-UP ADVERTISER...No need to pay someone else for pop-up advertising. Save $1,000s weekly. It's yours today free! Plus you can resell this software and keep 100% of the profit or simply give it as a free gift along with your current services. and much...much more! Hurry...This extraordinary offer ends soon! To find out more information, Do not respond by email. Instead, click on the link below or copy and paste the complete web address into your Internet browser. <br><A HREF="http://www.vvevvillmakeyoumoney.biz/broadcast6.htm">Click Here For More Information</A><br> http://www.vvevvillmakeyoumoney.biz/broadcast6.htm ______________________________________________________ Want to be REMOVED from our email list? You were sent this email because you used our Opt-in service. We hope you enjoy reading our messages. However, if you'd rather not receive future e-mails from us, Click on the link below. http://www.vvevvillmakeyoumoney.biz/removeme.htm Thank you for your cooperation. ________________________________________________________ |
From: Dinu G. <gh...@da...> - 2003-07-04 11:56:12
|
Hi, I'm experimenting with a prototype reST editor on OS X, and made a little QuickTime MPEG4 movie displaying the current state of it (since few people here might have OS X available): http://python.net/~gherman/tmp/ReSTedit0.mov (5 min, 1486 KB) It's only a start, I'm just using docutils.core.publish_string(text, writer_name='html'), but it raises for me several questions about: - changing the default CSS (or parts thereof) - suppressing warning messages (e.g. about empty sections) - raising visual significance of warning messages (e.g. color, etc.) Thanks for any insight into these issues! Dinu CC'ed to the PyObjC list... -- Dinu C. Gherman ...................................................................... "Even if you do learn to speak correct English, whom are you going to speak it to?" (Clarence Darrow) |
From: Ronald O. <ous...@ci...> - 2003-07-04 09:24:15
|
On Friday, Jul 4, 2003, at 11:10 Europe/Amsterdam, Dinu Gherman wrote: > Ronald Oussoren: > >> The signature is: (NSData, NSURL) -> (self, attributes), the >> documentAttributes is an output argument. > > I found this out by experimenting myself... It raises maybe an inter- > esting issue: what if an argument is used as input *and* output ar- > gument? Is there a general policy being followed behind returning > compound results, or is this a case-by-case decission? There is a general rule: - If a pointer is an input argument you should pass a value - If a pointer is an output argument you shouldn't pass a value and the value is added to the return value (which get's turned into a tuple like this: (method_return, output1, output2, ...) - If a pointer is both an input and an output: pass a value for input, the output is returned as with output-only arguments. Ronald |
From: Dinu G. <gh...@da...> - 2003-07-04 09:08:34
|
Ronald Oussoren: > The signature is: (NSData, NSURL) -> (self, attributes), the > documentAttributes is an output argument. I found this out by experimenting myself... It raises maybe an inter- esting issue: what if an argument is used as input *and* output ar- gument? Is there a general policy being followed behind returning compound results, or is this a case-by-case decission? > You must import AppKit before using this method, the method > is in a categorie. Hmm, one more of these implicit things to know... I wish Apple would use a some smarter way of isolating categories into seperate header and documentation files... BTW, it works nicely and helped me in producing a promissing pre- alpha version of a would-be reST-editor-like prototype thingy: http://python.net/~gherman/tmp/ReSTedit0.mov (6694 KB) Beware, this is pretty slow and I should better do the rendering using an NSTimer or so instead of whenever the input text changes... but it's a start... Dinu -- Dinu C. Gherman ...................................................................... "No one has ever had an idea in a dress suit." (Sir Frederick G. Banting) |
From: Michael H. <mw...@py...> - 2003-07-03 18:06:22
|
Ronald Oussoren <ous...@ci...> writes: >> I'm sorry for being thick, but the only WebCore download I've found on >> the ADC site is the source. Is that what you mean by SDK, or can I >> just get the headers somewhere (which is what "SDK" suggested to me)? >> If the latter, a pointer to the relavent bit of the site would be >> appreciated... > > Choose 'Log In' and then 'Download software', it's in the section with > new downloads. Oh, you have to *log in*! Why do I always forget that you sometimes have to do that? * mwh slaps himself Cheers, M. -- Q: What are 1000 lawyers at the bottom of the ocean? A: A good start. (A lawyer told me this joke.) -- Michael Ströder, comp.lang.python |
From: Ronald O. <ous...@ci...> - 2003-07-03 18:00:16
|
On Thursday, Jul 3, 2003, at 19:01 Europe/Amsterdam, Michael Hudson wrote: > Ronald Oussoren <ous...@ci...> writes: > >> On Thursday, Jul 3, 2003, at 16:30 Europe/Amsterdam, Michael Hudson >> wrote: >> >>> Ronald Oussoren <ous...@ci...> writes: >>> >>>> I've just checked in a patch that (amongst others) enables support >>>> for >>>> the constants in the WebCore framework. To compile the current CVS >>>> version you have to install the WebCore SDK. >>> >>> I'm having fun with this: my Safari 1.0 doesn't seem to have come >>> with >>> WebKit.h. Do I need to install WebCore from source? >> >> You have to install the WebKit SDK before building PyObjC. The SDK can >> be downloaded from the ADC site. > > I'm sorry for being thick, but the only WebCore download I've found on > the ADC site is the source. Is that what you mean by SDK, or can I > just get the headers somewhere (which is what "SDK" suggested to me)? > If the latter, a pointer to the relavent bit of the site would be > appreciated... Choose 'Log In' and then 'Download software', it's in the section with new downloads. Ronald |
From: Michael H. <mw...@py...> - 2003-07-03 17:10:21
|
Ronald Oussoren <ous...@ci...> writes: > On Thursday, Jul 3, 2003, at 16:30 Europe/Amsterdam, Michael Hudson > wrote: > >> Ronald Oussoren <ous...@ci...> writes: >> >>> I've just checked in a patch that (amongst others) enables support for >>> the constants in the WebCore framework. To compile the current CVS >>> version you have to install the WebCore SDK. >> >> I'm having fun with this: my Safari 1.0 doesn't seem to have come with >> WebKit.h. Do I need to install WebCore from source? > > You have to install the WebKit SDK before building PyObjC. The SDK can > be downloaded from the ADC site. I'm sorry for being thick, but the only WebCore download I've found on the ADC site is the source. Is that what you mean by SDK, or can I just get the headers somewhere (which is what "SDK" suggested to me)? If the latter, a pointer to the relavent bit of the site would be appreciated... Cheers, M. -- If your telephone company installs a system in the woods with no one around to see them, do they still get it wrong? -- Robert Moir, alt.sysadmin.recovery |
From: Ronald O. <ous...@ci...> - 2003-07-03 16:53:48
|
On Thursday, Jul 3, 2003, at 17:40 Europe/Amsterdam, Dinu Gherman wrote: > I wondered: > >> did anybody succeed already in displaying HTML code properly >> inside NSTextViews? If so, I'd be grateful for a simple code >> snippet... The ObjC stuff I've found so far does successfully >> resist my Pythonification attempts... > > Strange... There seems to be a method for NSAttributedString with > the following ObjC-signature: > > - (id)initWithHTML:(NSData *)data > baseURL:(NSURL *)aURL > documentAttributes:(NSDictionary **)docAttributes $ python Python 2.3b2+ (#1, Jun 30 2003, 17:14:46) [GCC 3.1 20020420 (prerelease)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import AppKit >>> import Foundation >>> Foundation.NSAttributedString.initWithHTML_baseURL_documentAttributes_ <unbound native-selector initWithHTML:baseURL:documentAttributes: in NSAttributedString> >>> The signature is: (NSData, NSURL) -> (self, attributes), the documentAttributes is an output argument. You must import AppKit before using this method, the method is in a categorie. Ronald |
From: Ronald O. <ous...@ci...> - 2003-07-03 16:48:50
|
On Thursday, Jul 3, 2003, at 16:30 Europe/Amsterdam, Michael Hudson wrote: > Ronald Oussoren <ous...@ci...> writes: > >> I've just checked in a patch that (amongst others) enables support for >> the constants in the WebCore framework. To compile the current CVS >> version you have to install the WebCore SDK. > > I'm having fun with this: my Safari 1.0 doesn't seem to have come with > WebKit.h. Do I need to install WebCore from source? You have to install the WebKit SDK before building PyObjC. The SDK can be downloaded from the ADC site. Ronald |
From: Bob S. <rsw...@tr...> - 2003-07-03 16:06:46
|
I have the following code to display an alert while my application is doing something that the user must wait for: alertPanel = NSGetInformationalAlertPanel("Waiting", "Please wait.", None, None, None) modalSession = application.beginModalSessionForWindow_(alertPanel) while 1: .... check and break when ready application.endModalSession_(modalSession) NSReleaseAlertPanel(alertPanel) When run, this code causes these messages on the console: 2003-07-03 11:51:16.213 Goombah[1250] PyObjCPointer created: at 0x24da590 of type {_NSModalSession=@@^{_NSModalSession}iciI^vi@@:^vi} 2003-07-03 11:51:20.938 Goombah[1250] Exception raised during posting of notification. Ignored. exception: depythoning 'struct', got 'PyObjCPointer' Do I need to inform PyObjC that this is an NSModalSession struct in some way? Thanks for your help. Bob Swerdlow COO Transpose rsw...@tr... 207-781-8284 http://www.transpose.com ---------------------------------- Fight Spam! Add this link to your signature (as I did): http://wecanstopspam.org Click through to find out more. ---------------------------------- |
From: Dinu G. <gh...@da...> - 2003-07-03 15:38:49
|
I wondered: > did anybody succeed already in displaying HTML code properly > inside NSTextViews? If so, I'd be grateful for a simple code > snippet... The ObjC stuff I've found so far does successfully > resist my Pythonification attempts... Strange... There seems to be a method for NSAttributedString with the following ObjC-signature: - (id)initWithHTML:(NSData *)data baseURL:(NSURL *)aURL documentAttributes:(NSDictionary **)docAttributes It was really hard to find on this page: http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSAttributedString.html but it seems not to be described in my local Developer header files! Neither is it described in my copy of CocoaBrowser.app (which just imports the local developer documentation, I think). Using it in ObjC works, but since much of the PyObjC-interface was somehow created automatically from such header files I guess, it is just not available in PyObjC now! I'm not sure if this method is deprecated or what. It makes sense and it works. Here is a very nice, very short sample project which uses it (build your own webbrowser with almost no code): http://jrepp.com/cocoabb/viewtopic.php?t=32 http://jrepp.com/src/WeBrowser.tgz The question that remains is: can we add this to PyObjC somehow, so I can eat my HTML/NSTextView cake, too? ;-) Note, that I'd like to see a simple paragraph somewhere in the developer documentation that would explain to me how I can add such stuff myself, unless it's already there, of course... Thanks, Dinu -- Dinu C. Gherman ...................................................................... "Political satire became obsolete when Henry Kissinger was awarded the Nobel Peace Prize." (Tom Lehrer) |
From: Michael H. <mw...@py...> - 2003-07-03 14:37:01
|
Ronald Oussoren <ous...@ci...> writes: > I've just checked in a patch that (amongst others) enables support for > the constants in the WebCore framework. To compile the current CVS > version you have to install the WebCore SDK. I'm having fun with this: my Safari 1.0 doesn't seem to have come with WebKit.h. Do I need to install WebCore from source? Cheers, M. -- Slim Shady is fed up with your shit, and he's going to kill you. -- Eminem, "Public Service Announcement 2000" |
From: Michael H. <mw...@py...> - 2003-07-03 10:26:54
|
Just van Rossum <ju...@le...> writes: > Jack Jansen wrote: > >> I think the problem here is that gnutar and OSX-tar are not 100% >> compatible. To make matters worse, once you use fink it will install >> a GNU tar in >> /sw/bin >> with the name "tar", and it obscures OSX tar. The result of this is >> that you create tarfiles that cannot be read by people who have only >> a basic OSX installation. I got bitten by this a while ago. Although I still have bits of fink installed, I removed /sw/bin from my path for exactly this sort of reason (in general I wish fink worked more with the BSD tools as present in OS X rather than trying to slap a GNU/Darwin system on top, but I guess this isn't the place for that rant). > Note that the snapshot tar files are created on a Linux shell box @ sf, > but I have no idea what tar version that is. It'll be GNU tar, no question. Cheers, M. -- Need to Know is usually an interesting UK digest of things that happened last week or might happen next week. [...] This week, nothing happened, and we don't care. -- NTK Now, 2000-12-29, http://www.ntk.net/ |
From: Dinu G. <gh...@da...> - 2003-07-03 06:35:05
|
Hi, there's probably one more interesting Mac OS X book to buy: "Core Mac OS X and Unix Programming" by Mark Dalrymple and Aaron Hillegass http://slashdot.org/article.pl?sid=03/07/01/1636204 http://borkware.com/corebook Dinu -- Dinu C. Gherman ...................................................................... "The only way to get rid of a temptation is to yield to it." (Oscar Wilde) |
From: Just v. R. <ju...@le...> - 2003-07-02 20:12:44
|
Ronald Oussoren wrote: > >> SRE doesn't work because it tests types using '==' instead of > >> 'isinstance'. IMHO this is a bug in SRE. > > > > I agree. Do you report it or shall I do it? I think it's important > > to get this fixed before 2.3 final. > > bug #764548 FWIW, the bug has been fixed in Python CVS. Just |
From: Dinu G. <gh...@da...> - 2003-07-02 16:21:06
|
Jack Jansen: > Nice! Thanks for the screenshot, I can't run the code right now, > it's good to see what it looks like. Ok then, here's more to look at :-) http://python.net/~gherman/tmp/RegexPlor0.mov (778 KB) Dinu -- Dinu C. Gherman ...................................................................... "The pure and simple truth is rarely pure and never simple." (Oscar Wilde) |
From: Dinu G. <gh...@da...> - 2003-07-02 15:41:01
|
Hi, did anybody succeed already in displaying HTML code properly inside NSTextViews? If so, I'd be grateful for a simple code snippet... The ObjC stuff I've found so far does successfully resist my Pythonification attempts... Thanks, Dinu -- Dinu C. Gherman ...................................................................... "La vie est un bien perdu pour celui qui ne l'a pas vecu comme il l'aurait voulu." (Mihail Eminescu) |