Weird one here; I’ve started to notice in the recent months that my apps display the Apple About Box via the code below, display a really small icon.
[code] #if TargetCocoa then
declare sub orderFrontStandardAboutPanel lib “Cocoa” selector “orderFrontStandardAboutPanel:” (class_id as Ptr)
declare function sharedApplication lib “Cocoa” selector “sharedApplication” ( classRef as Ptr ) as Ptr
declare Function NSClassFromString Lib “Foundation” (className as CFStringRef) As Ptr
orderFrontStandardAboutPanel( sharedApplication( NSClassFromString( "NSApplication" ) ) )
#endif[/code]
I’m getting to the point where I’m running out of ideas:
- Tried different ICNS files, including using this one as it displays correctly in the Calculator application.
- Tried 32-Bit & 64-Bit.
- Tried using the HIDPI option in Xojo and without.
- Tried by forcing Retina with App Wrapper and without.
- Tried using the ICNS generation of Xojo and getting App Wrapper to create the ICNS file.
What does work is if I create a dictionary of the values and pass it to “orderFrontStandardAboutPanelWithOptions:”, but… This means that I have to write a bunch of declares to then automatically obtain all the other data that I used to get for FREE.
What also works, is a brand new project.
Anyone else seen this problem, any suggestions as to what’s causing this that might be easy to fix.