Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: e9a3e1acc0dd847695f29da760e63b056922e578
Ticket: 31cd33dbf0af9600f9f13b03f07b7dbf0a42d1f4
Cocoa Tk widgets do detect invalid -bitmap values
User & Date: ned.deily 2014-01-31 23:22:28
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    When a non-existant bitmap file is given to a widget with X11 or Aqua Carbon Tk 8.4 on OS X, an exception is returned.  But with Cocoa Tk 8.5 or 8.6 on OS X, the error is not detected by Tk but does result in an OS X error message.
    
    With X11 Tk (MacPorts 8.6.1)
    
    <verbatim>
    $ /macports/bin/wish8.6
    % if [catch {button .b -bitmap "blah"} result] {
        puts "Failed: $result"
    } else {
        puts "passed"
    }
    Failed: bitmap "blah" not defined)
    </verbatim>
    
    With Cocoa Tk 8.6.1 or 8.5.15:
    <verbatim>
    $ /usr/local/bin/wish8.6
    % if [catch {button .b -bitmap "blah"} result] {
        puts "Failed: $result"
    } else {
        puts "passed"
    }
    2014-01-31 14:58:07.134 Wish[9555:507] CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme: blah
    passed
    </verbatim>
    
  5. foundin changed to: "8.6.1"
  6. is_private changed to: "0"
  7. login: "ned.deily"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "5312fcfb57a92ddd64553c14c04a390a9032b63f"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "ned.deily"
  14. subsystem changed to: "(unused)"
  15. title changed to: "Cocoa Tk widgets do detect invalid -bitmap values"
  16. type changed to: "Bug"