« June 2007 | Main | October 2007 »

July 2007 Archives

July 7, 2007

New Source of Income

$4240.00

July 13, 2007

python - my way or the highway

walitza:/Volumes/Source/src nat$ python
Python 2.3.5 (#1, Mar 20 2005, 20:38:20) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
'Use Ctrl-D (i.e. EOF) to exit.'
It's like, python tells me "I understand you, you want to quit, but you have to do it MY way." This is a look into the future:
walitza:/Volumes/Source/src nat$ python
Python 2.6.1 (#1, Mar 20 2008, 09:42:00) 
[GCC 3.3 20030304 (Apple Computer, Inc. build 1809)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
'Use Ctrl-D (i.e. EOF) to exit.'
>>> ^D
'Now I am sure you can say this a lot friendlier.'
>>> ^Dplease
walitza:/Volumes/Source/src nat$

July 27, 2007

The lameness of NSSegmentedControl

If you have an NSSegmentedControl on a pallete with some images in it, you are bound for trouble. The problem is, that the image data of each cell isn't encoded along with the rest of the cell information. Rather the cell encodes the pathname of the image. That sounds good at first, because you don't end up with a lot of duplicate images. This is bad, because it is the absolute path of the image:
       <string>/Library/Developer/Palettes/XXXInterfacePalette.palette/Contents/Resources/FormSel_5.tiff</string>
       <dict>
               <key>$class</key>
               <dict>
                       <key>CF$UID</key>
                       <integer>30</integer>
               </dict>
               <key>NSSegmentItemDisabled</key>
               <true/>
               <key>NSSegmentItemImage</key>
               <dict>
                       <key>CF$UID</key>
                       <integer>37</integer>
               </dict>
               <key>NSSegmentItemLabel</key>
               <dict>
                       <key>CF$UID</key>
                       <integer>29</integer>
               </dict>
               <key>NSSegmentItemTag</key>
               <integer>2</integer>
               <key>NSSegmentItemWidth</key>
               <real>27</real>
       </dict>
Obviously in a deployment scenario your image will not be found, if the palette isn't there.

About July 2007

This page contains all entries posted to Nat!'s Web Journal in July 2007. They are listed from oldest to newest.

June 2007 is the previous archive.

October 2007 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34