[MacRuby] #1223: deploying a doc based app fails
#1223: deploying a doc based app fails -----------------------------+---------------------------------------------- Reporter: rob.ista@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: macruby_deploy -----------------------------+---------------------------------------------- a xcode4 / macruby 0.10 delivers a working doc based app but after deploying it, the program doesn't seem to be able to find the NSDocument class. It just fails to start (although the menubar works and therefor e.g. the help function) and doesn't recognize the connected doc types anymore. some code: (i stripped a few hundreds lines of code :) and SubtitleFile is a class to convert a subtitle textfile into a table and vv) class SubtitleDoc < NSDocument attr_accessor :subtitlesTableView def windowNibName 'MyDocument' end def init super @subtitles = [] self end def awakeFromNib @subtitlesTableView.dataSource = self end def readFromData(data, ofType:type, error:error) @subtitles = SubtitleFile.loadFile(NSString.alloc.initWithData(data, encoding:NSUTF8StringEncoding)) return true end def dataOfType(type, error:error) data = SubtitleFile.saveFile(@subtitles) data.dataUsingEncoding(NSUTF8StringEncoding, allowLossyConversion:true) end end -- Ticket URL: <http://www.macruby.org/trac/ticket/1223> MacRuby <http://macruby.org/>
#1223: deploying a doc based app fails -----------------------------+---------------------------------------------- Reporter: rob.ista@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: macruby_deploy -----------------------------+---------------------------------------------- Comment(by rob.ista@…): Well, i decided to start all over again with xcode4 and a new doc based app ... created all class files as new and just copied all the code .. with the xib's same thing .. to my surprise i was able to create a working app with deploy .. tried to find the diffs but cant find them .. i suggest lowering the priority of this ticket .. obviously there is a decent work around -- Ticket URL: <http://www.macruby.org/trac/ticket/1223#comment:1> MacRuby <http://macruby.org/>
#1223: deploying a doc based app fails -----------------------------+---------------------------------------------- Reporter: rob.ista@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: worksforme Keywords: macruby_deploy | -----------------------------+---------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => worksforme Comment: I just created a new doc-based app with MacRuby master with Xcode4, then ran the Deployment target, then ran the app, and it works flawlessly (no exception or anything in the terminal). So maybe the problem has been fixed in the meantime... Please try again and let us know if it fails to work again. -- Ticket URL: <http://www.macruby.org/trac/ticket/1223#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby