The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   Omni Frameworks (http://forums.omnigroup.com/forumdisplay.php?f=16)
-   -   Quick question on Text Editor (http://forums.omnigroup.com/showthread.php?t=20429)

RandomTask 2011-03-17 04:16 AM

Quick questions on Text Editor
 
I'm getting these errors when I run the Text Editor sample. I couldn't find SampleNames when I search the project files:

Localizable string "Hello" not found in strings table "SampleNames" of bundle CFBundle 0x6817440 </Users/username/Library/Application Support/iPhone Simulator/4.2/Applications/6E3D02B5-4977-4C2A-90E1-9177C915A476/TextEditor.app> (executable, loaded).
2011-03-17 06:58:14.025 TextEditor[2955:207] Localizable string "Midsummer" not found in strings table "SampleNames" of bundle CFBundle 0x6817440 </Users/username/Library/Application Support/iPhone Simulator/4.2/Applications/6E3D02B5-4977-4C2A-90E1-9177C915A476/TextEditor.app> (executable, loaded).
2011-03-17 06:58:14.047 TextEditor[2955:5d03] Unable to load preview from file://localhost/Users/username/Library/Application%20Support/iPhone%20Simulator/4.2/Applications/6E3D02B5-4977-4C2A-90E1-9177C915A476/Documents/HELLO.rtf: (null)
2011-03-17 06:58:14.053 TextEditor[2955:1803] Unable to load preview from file://localhost/Users/username/Library/Application%20Support/iPhone%20Simulator/4.2/Applications/6E3D02B5-4977-4C2A-90E1-9177C915A476/Documents/MIDSUMMER.rtf: (null)

Looks OK.. shows two 'Lame RTF Preview screens' and when I touch Hello or Midsummer it opens the document.


Also got this error:
2011-03-17 06:59:23.788 TextEditor[2955:207] Still need to port -[OUIInspector inspectorSizeChanged] at /Users/Shared/username/Products/OmniGroup/Frameworks/OmniUI/iPad/Inspectors/OUIInspector.m:256: Avoid the class check here by adding some API to OUIInspectorPane?


Finally: if I enter 3 or 4 blank lines, if I click on one of those lines, it doesn't go there. I can double-tap it, and it selects all of the blank lines. I can navigate the cursor using the arrow keys in simulator, but don't have arrow keys on the iPad to do it.

Thanks!

Thanks!

RandomTask 2011-03-18 10:37 AM

Update: I think the first issue is a placeholder for preview code.

For the second issue: you can comment out that line if you don't need to do anything for that event. I'm not sure what was triggering it.

Finally: looks like the cursor issue is a known issue: text that I enter past the "window" that requires scrolling is hard to "get to". I can see it but can't edit it or scroll to it when editing.

Related issue: I can create new Docs and Hello.rtf opens OK, but Midsummer does not load. It shows up OK in XCode in the project.

Error is: ASSERT failed: requires 'ctx->fromView.hidden == YES', at /Users/Shared/username/Products/OmniGroup/Frameworks/OmniUI/iPad/OUIToolbarViewController.m:303

looks like it fails to hide the view, and in the App, the view does fail to hide... the cursor moves around the document and keyboard shows as if the document is displayed (behind the view that was not hidden correctly)

Good code so far! Thanks for sharing.


All times are GMT -8. The time now is 09:32 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.