DONE: program faults with NSOpenPanel

Please report bugs.

DONE: program faults with NSOpenPanel

Postby udo.killermann » Mon Jun 21, 2010 6:04 am

Bernd,

when I try to set filetypes using the Types property NSOpenPanel will throw an exception. Have a look at this code, what do I do wrong?
Code: Select all

Dim myArr As Array

Event AwakeFromNib()
  myArr.Append("icns")
  myArr.Append("h")
  Alert(myArr)
  NSOpenPanel.Directory = "~/Downloads"
  ' NSOpenPanel.CanChooseDirectories = Yes
  NSOpenPanel.Types=myArr
 
  NSOpenPanel.Run()
  Alert(FilePath(NSOpenPanel.FileName()))
  Alert(NSOpenPanel.FileName())
 
End Event


This results in
Code: Select all
-[NSCFString count]: unrecognized selector sent to instance 0x105a0e0


Regards
Udo
--------------
MacBook (2GHz, 4 GByte) - Lion (10.7.3)
started Objective Basic coding in April 2010 - still enjoy it ;-)
udo.killermann
 
Posts: 247
Joined: Thu Apr 08, 2010 6:46 am
Location: Hannover, Germany

Re: program faults with NSOpenPanel

Postby berndnoetscher » Mon Jun 21, 2010 8:44 am

Udo,
your code is expected to work.
Unfortunetaly, you found a bug in the runtime. Will upload a new version with the fix soon.
Thanks.
berndnoetscher
Site Admin
 
Posts: 280
Joined: Fri Feb 20, 2009 11:58 am

Re: program faults with NSOpenPanel

Postby berndnoetscher » Tue Jun 22, 2010 7:12 pm

Just uploaded the fix.
berndnoetscher
Site Admin
 
Posts: 280
Joined: Fri Feb 20, 2009 11:58 am


Return to Bug Reports (Xcode 3)

Who is online

Users browsing this forum: No registered users and 2 guests

cron