Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2 [PAT:2]Fix for ns_override of returning large values

closed
nobody
None
5
2006-01-31
2005-12-26
kimura wataru
No

https://sourceforge.net/mailarchive/forum.php?
thread_id=9308226&forum_id=7197

Discussion

  • kimura wataru
    kimura wataru
    2005-12-26

     
    Attachments
  • kimura wataru
    kimura wataru
    2006-01-31

    • summary: Fix for ns_override of methods returning large values --> [PAT:2]Fix for ns_override of returning large values
    • status: open --> closed
     
  • kimura wataru
    kimura wataru
    2006-01-31

    Logged In: YES
    user_id=919560

    This patch was merged:
    framework/src/objc/OverrideMixin.m: rev1.10

    ====
    this code crashed
    ====
    require 'osx/cocoa'

    class Ctrl < OSX::NSObject

    def applicationDidFinishLaunching(notification)
    win = Window.alloc.initWithContentRect([0, 0, 100, 100],
    :styleMask, OSX::NSTitledWindowMask + OSX::NSClosableWindowMask,
    :backing, OSX::NSBackingStoreBuffered,
    :defer, true)
    puts win.frame
    OSX::NSApplication.sharedApplication.terminate(self)
    end

    end

    class Window < OSX::NSWindow
    ns_overrides 'frame'

    def frame
    super_frame
    #[0,100,0,100]
    end

    end

    app = OSX::NSApplication.sharedApplication
    app.setDelegate(Ctrl.alloc.init)
    app.run