convertPoint_fromView internal error
Original Reporter info from Mantis: ryanjoseph
-
Reporter name: Ryan Joseph
Original Reporter info from Mantis: ryanjoseph
- Reporter name: Ryan Joseph
Description:
convertPoint_fromView gives me a Internal error 2007020810 every.
Steps to reproduce:
{$mode objfpc}
{$modeswitch objectivec1}
program Main;
uses
CocoaAll, Strings;
type
TSomeView = objcclass (NSView)
function canvasPointFromEvent (theEvent: NSEvent): NSPoint; message 'canvasPointFromEvent:';
end;
function TSomeView.canvasPointFromEvent (theEvent: NSEvent): NSPoint;
begin
result := convertPoint_fromView(theEvent.locationInWindow, nil);
end;
var
argc: LongInt;
argv: PPChar;
begin
NSApplicationMain(argc, argv);
end.
Mantis conversion info:
- Mantis ID: 19700
- OS: Mac OS
- OS Build: 10.6.8
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 18053 (#da3fb5de)