Xcode 3/Interface Builder - Adding classes to NIB file doesn't work
I'm attempting to learn Objective-C and Cocoa GUI through Apple's "Currency Convertor" tutorial. I'm currently at the "Add the ConverterController Class to Your Nib File" step, and I add ConverterController.h to the Interface Builder project (both by Read Class Files and dragging) and... nothing happens. The tutorial clearly states that the class should appear as a new icon in the MainMenu.nib window. I've tried researching this problem, and it appears to be quite common, however every fix isn't really a fix at all. They all involve using the Identity Inspector for something, which appears very complicated, and is otherwise uncovered in the tutorial. It occurs to me that anyone knowing enough to be able to use this fix wouldn't be reading this tutorial, thus making such answers moot. Any help anyone could provide on this issue would be appreciated.
The tutorial you linked to should work fine except that they've just got the illustration (Figure 5-3) in the wrong place.
The placement of that illustration implies that you should see the instance of your class in the MainMenu.nib window right after doing step 2 (where you read your class file). But that's not really true. In reality it's step 3 that gets you the blue box in the MainMenu.nib window and steps 4 and 5 that will transform it from an "Object" into a "ConverterController". Steps 3, 4 and 5 are exactly what Thomvis suggested that you do earlier.
Steve
Similar Messages
-
Can't add albums in library to iPhone.
Full question: I have several albums in my library that I cannot get onto my device. I have tried manually adding the albums, but it doesn't work. I can view the albums in "Music," but when I click on "iPhone" they are gone. How can I transfer them over?
-
String windows in Xcode vs interface builder
Dear All,
Doing translation, I used interface builder 3.6 with "string windows" (alt S) to have a list of sting used in the nib file.
I can translate them, and I'm sure that everything is included in my local version.
Now Interface builder is included in Xcode.... How can I get all the string used in a nib file on a list format ????
Tahnk for your help
BrunoFinally i've got iLocalize for free on the appstore which give me more flexibility, and i use now xCode to clean the interface and do fine tunning.
Bruno -
Hello,
I want to make a thing in Interface Builder so that when I click on the About "My Application" menu in the Menu Bar at the top a new window comes up.
What I did, was made a new window (HUB) then, deselected Visible at Launch. I did all the linking stuff with applescript and when I tested (Apple - R) it showed up! Any idea why and how to fix this problem?
Thanks!
P.S. My app is an AppleScript app
And also, if you can, how do you "export" your finished apps from Xcode?bubblejelly wrote:
I want to make a thing in Interface Builder so that when I click on the About "My Application" menu in the Menu Bar at the top a new window comes up.
Umm, OK. But you should get an "About" window by default without having to do anything. Are you saying you want another window too, or a different window than the default one?
What I did, was made a new window (HUB) then, deselected Visible at Launch. I did all the linking stuff with applescript and when I tested (Apple - R) it showed up! Any idea why and how to fix this problem?
HUB? Not sure what that means.
Did you do the Apple-R in Xcode or in Interface Builder? "Test Interface" (or Apple-R) in Interface Builder is not the same as "Build and Run" (Apple-R) in Xcode. In IB if your "not visible" window is open when you do the Apple-R then it will also be open when the interface test is in progress. None of your AppleScript code gets executed when you're testing in IB.
If you were doing the Apple-R in Xcode then I don't know. Post some of your AppleScript code.
Steve -
Hi,
I had created a new project with the Tab Bar Application Template in XCode. I did not ever touch the AppDelegate classes. Everything used to work perfectly. I must have done something, but now my main view does not load when I Build & Go. Instead, the app terminates due to an uncaught exception. I even tried to undo all my changes and restore the project from a snapshot, but it still will not load. Is this simply a programming bug, or am I doing something wrong? Any help would be greatly appreciated.
-Thanks
P.S. Here is the Log from XCode:
[Session started at 2009-02-04 17:53:16 -0600.]
2009-02-04 17:53:19.783 Pulse New[2457:20b] Unknown class SecondView in Interface Builder file.
2009-02-04 17:53:19.791 Pulse New[2457:20b] * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Pulse_NewAppDelegate 0x525070> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key secondView.'
2009-02-04 17:53:19.792 Pulse New[2457:20b] Stack: (
2492227851,
2497429051,
2492226609,
2444026504,
2444025070,
2444568513,
818019035,
2492181573,
818013737,
818022028,
816113908,
816149067,
2444104238,
2491730725,
2491731160,
827745792,
827745989,
816114848,
816160924
[Session started at 2009-02-04 17:53:19 -0600.]
Loading program into debugger…
GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
Program loaded.
sharedlibrary apply-load-rules all
Attaching to program: `/Users/briancharous/Library/Application Support/iPhone Simulator/User/Applications/ECE31580-35EF-4AE2-B42B-67AEB835F808/Pulse New.app/Pulse New', process 2457.
(gdb)
Message was edited by: brian515Hey Brian,
I had the same exact issue. I was working on a multi-view app using a tab controller and all of the sudden I get this NSUnknownKeyException. However my invalid key happens to be an outlet to a Picker contained within a subview... I deleted the XIB view which contained the picker and re-impl'd its file's owner. That didnt work.
Finally I recreated the project with the same source code and all of the sudden it worked...
This scares me. -
Hello everybody,
I have a JSON_File whith different content inside like so:
"title": "LEMON",
"description": "frame01",
"frame01": "_01.png"
"title": "POTATO",
"description": "frame02",
"frame02": "_02.png"
In the library there is a symbol named "template" where the information
placed from the JSON-Data whith "sym.createChildSymbol".
template.$("title").html(item.title);
template.$("description").html(item.description);
template.$("frame").css("background-image", "url("+item.frame0+")");
Is it possible to give the different content_data a class (for example fruit and vegetable)
and ask in edge only for the class "fruit" to sort the icons one after another in a content-container ?
Am I thinking in the wrong direction?
Right now I walk through the different parameters an pull the content inside the template,
this works fine. But how to apart fruit from vegetable?
Any help would be fine.
THXWithout opening up the can of worms that asks why you want to do this, the easiest way to get a load rule to see more fields is to create a dummy text file with as many columns as you need and open it with the load rule. The load rule editor will "see" the extra columns, and you can change at will.
Okay, I can't resist -- why do you want to do this? Generation or Level dimension build and you don't know how many generations/levels you're going to have? A parent/child table is going to be much easier to work with and will never require playing around with a load rule as the number of columns never change.
Regards,
Cameron Lackpour -
Adding a Panel to JApplet doesn't work properly
Hi there,
I have a class "Editor" extended from JPanel to edit some data. In my JApplet I added a JMenubar with setJMenubar() and registered an ActionListener to the menu items. Everything works fine except the displaying of the EditorPanel after choosing the menu item.
When I'm adding the Panel in the constructor of the applet it is shown correctly.
public class EditorApplet extends JApplet implements ActionListener
public void init()
setJMenuBar(createJMenuBar());
Editor e = new Editor();
getContentPane().add(e); // works perfectly
e.load(2); // load data into editor
public void actionPerformed(ActionEvent e)
if (e.getActionCommand().equals("..."))
Editor e = new Editor();
e.loadObjects(1);
getContentPane().removeAll();
getContentPane().add(e); // nothing happens!?
getContentPane().repaint(); // ???
repaint(); // ???
}What else needs to be done to display the 'new' Editor?Wait. You're adding an ActionEvent to your panel.
I think you want to do "add(this.e)". -
Own class in Email action doesn't work
Hello, all!
I have copied the std class CL_DOC_PROCESSING_CRM_ORDER to a z* one and what i want to do is to change the mail sender based on some conditions. I write new class and smartfrom in action profile.
But instead of my new class system execute old one but with right smartform. In debugger I see that in method CL_SF_MAIL_TEMPL_PPF~GET_MEDIUM attribute USECUSTDAT isn't set to 'X'.
Question how to fix this?Hi,
you can check for inconsistencies in actions. You can do this in Transaction SPPFCADM. You can first check for inconsistencies and if any found you can use clean up to repair them.
Best regards
Marion -
prefer-web-inf-classes in weblogic.xml doesn't work
When I try to use <prefer-web-inf-classes>true</prefer-web-inf-classes> it works fine with default classloaders structure. But after I changed classloaders hierarhy by means of <classloader-structure> in weblogic-application.xml classes from web app are ignored and classes from outside web app are loaded.
Here is classloaders structure I use
<weblogic-application>
<classloader-structure>
<module-ref>
<module-uri>mywar.war</module-uri>
</module-ref>
<classloader-structure>
<module-ref>
<module-uri>myejb.jar</module-uri>
</module-ref>
</classloader-structure>
</classloader-structure>
</weblogic-application>
Has anybody encountered this before?Hi, Rob
Does it work in WL9.2?
It seems I do it exactly as the explained at http://edocs.bea.com/wls/docs81/programming/classloading.html - and it fails :o(.
I try to run my app.ear with WL9.2 There are 2 components in it: webapp and mdb. The webapp/WEB-INF contains weblogic.xml:
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>
Mdb is expected to run in the same mode, i.e. to prefer the webapp/WEB-INF/*.jar over the parent Weblogic classloader. To do so I add the weblogic-application.xml to the app.ear!/META-INF:
<weblogic-application>
<classloader-structure>
<module-ref>
<!-- reminder: this webapp contains
prefer-web-inf-classes -->
<module-uri>webapp</module-uri>
</module-ref>
<classloader-structure>
<module-ref>
<module-uri>mdb.jar</module-uri>
</module-ref>
</classloader-structure>
</classloader-structure>
</weblogic-application>
Now, when classloader-structure specified, both webabb and mdb prefer the weblogic root loader as if prefer-web-inf-classes not defined at all. -
Itunes File Sharing: Adding files doesn't work
Hi,
i have a problem adding files via Itunes File Sharing in Apps. Here's my setup:
Windows 7 64bit, german
Itunes 11.1.5.5, x64, german
Iphone 5s, 32GB, directly attached via USB
several apps with file sharing support (OpenVPN, VLC, Good Reader...)
Now, when i choose one of the apps and click "Add...", i get a file selection dialogue, select a file and click 'ok'... that's it.
Nothing happens. The file is not added to the window.
It's not added to the phone after a sync, so it doesn't seem to be a display problem. But i don't get an error message at
any point, so i'm quite flattered where to start looking for the problem.
Steps so far:
Reinstallation Itunes - no effect
Reinstallation Drivers - no effect
Starting with a new media library - no effect
The only thing suspicious are some bonjour errors in the windows logs. But even with disabled bonjour service the problem persists.
I've searched for this in the forums but didn't find a proper thread/answer for this.
Anyone coming up with an idea? At least where to look for the problem? Is there a log file/command line parameter/deep inside special genius trigger to pull? I'm getting out of options here. :/
Thanks a lot!
Regards from germany,
l0calhostProblem solved. Complete deinstallation of ITunes, computer restart, telephone restart and finally reinstallation of the app did the trick.
But still, how would you debug a problem like this, when no error message comes up at any point? -
Adding PDF watermark in Automator doesn't work in Lion?
Hi folks,
I am trying to create a function for adding watermarks to my invoices. I read different tutorials, but whatever I make, when it comes to adding the watermark background (Automator -> Workflow -> PDFs -> Watermark PDF document (not quite sure about the english name)) it doesn't add anything. I tried .jpg, .psd, .png, different image files and sizes. However I never get any file into my list.
Any hints?
Thanks!
MikeHere's a workaround:
1. Create a workflow, including the "Watermark PDF Documents" action, save it as a workflow.
2. Show the contents of the saved workflow, find the file "document.wflow" inside the "Contents" folder, open it with a word processor, e.g TextEdit or BBEdit or Microsoft Word
3. Find the parameter block of the "Watermark PDF Documents" action, it should look like below:
<key>ActionParameters</key>
<dict>
<key>angle</key>
<real>57.379999999999995</real>
<key>onePDF</key>
<false/>
<key>opacity</key>
<real>0.72282608695652173</real>
<key>overUnder</key>
<integer>1</integer>
<key>scale</key>
<real>1.4574821967095799</real>
<key>xOffset</key>
<real>34.5</real>
<key>yOffset</key>
<real>23.469999999999999</real>
</dict>
4. Add a key-value pair for "fileNames" into the parameter dictionary, so that it looks like this:
<key>ActionParameters</key>
<dict>
<key>angle</key>
<real>57.379999999999995</real>
<key>fileNames</key>
<array>
<string>/Volumes/Storage/Media/Pictures/SleepingCat.gif</string>
</array>
<key>onePDF</key>
<false/>
<key>opacity</key>
<real>0.72282608695652173</real>
<key>overUnder</key>
<integer>1</integer>
<key>scale</key>
<real>1.4574821967095799</real>
<key>xOffset</key>
<real>34.5</real>
<key>yOffset</key>
<real>23.469999999999999</real>
</dict> -
Added Snow Leopard, now Safari doesn't work on MacBook Pro
Help!!!
How did you add Snow Leopard? Can you be more specific about what Safari is or isn't doing?
-
Adding Searx as default engine doesn't work
Hi
Running Firefox 33.0 on Android 4.4.4, and tried to use http://searx.laquadrature.net/ as default search engine. Unfortunately, when I enter terms to be searched in the awesome bar, it always leads to the search home page of searx, but no term are searched. Did I missed something ?Hi,
It appears that there are 3 issues on your computer:
1. Cannot change the VLC as default player:
You can try the solution here, consider that you have no permission of the related registry keys:
Fix: Unable to Change Default Program Extension on Windows 7 | 8
http://www.thewindowsclub.com/fix-unable-change-default-program-extension-windows-7
2. Cannot open Skype and it always crash.
For this issue, you can try the app troubleshooter to see if there is any exact error about this program:
Troubleshoot and Fix Apps problems with Windows 8 Apps Troubleshooter
http://www.thewindowsclub.com/windows-8-apps-troubleshooter
Also, you will see the related error under event log, you can also post back the event log for our research:
3. Error code 80070002 appeared when you try to download app from Windows store:
Try to clear store catch:
a. Press "Windows key + R".
b. Type wsreset.exe and click OK.
Run the following in a Command Window (CMD) to re-register the Store App:
powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.XML
If you get any antivirus program, please disable it and check the store issue.
Kate Li
TechNet Community Support -
Adding a default program to open a file doesn't work
After upgrading Adobe Photoshop cs3 to cs5, I select a jpeg image file and select "open with", looking for the application. Not there, so I browse to find the application (CS5) and select it. It does not add the application to the "open
with" choices. I was able to add Adobe Bridge to the choices. Adobe support worked with me several times and says the problem is with the W7 account permissions. Any ideas on this? W7 Professional 64 bitHi,
In order to change the default program, you need to know the file type. For example, .mp3 or .wav, or .docx.
Instead of going to "set your default programs" , go to "associate a file type or protocol with a program. Click on the file extension and just click change program.
If that does not work, this problem maybe due to the fact that the program has not registered itself on installation. A program typically registers itself on installation by means of a new entry in the system registry. It is possible to manually include
registry entries provided you know what and where.
Regards,
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” -
OTN HOS1.1-Using ADF to Quickly Build a Master-Detail Web Page doesn't work
Referencing the Hands-On Session at this site 'http://www.oracle.com/technology/products/jdev/collateral/4gl/HO_Workshop/hos1_1/hos1_1_ADF_Forms_Designer.htm'. Under 'Creating the Java Server Page' section 10 through 12 does not provide the proper run results. The orders linked to the CustomerID do not display. The titles for the columns display, but nothing else for the OrdersView2.
I'd sure like to know how to make this work. Please get back with me. I feel that some small detail was left out.
ThanksPaul - Thanks for that info but I have not been able to reproduce this on 2.0 (even using htmldb.oraclecorp.com) using emp/dept master detail form.
Scott
Maybe you are looking for
-
How do I create a personal Lync account?
I don't know much about Lync... My work uses Lync (the whole Office package), and as a result we are able to participate in Microsoft's Home Use Program, which gives me personal access to Office 2013, which includes Lync. I'm trying to find a way t
-
Error while invoking decision service
Hi, I have created a decide activity to invoke decision service partner link, then I have created copy operation assignments between fact types in my business rule set and BPEL variables. Now while running the BPEL process, I am getting the following
-
Acrobat v9.3.2 Won't Save PDF Files On W7 64 Bit
I have a dilemma that needs to be solved. I have a new Windows 7 64 bit system with several terabytes of legal documents stored locally, mostly in PDF. After loading Adobe Acrobat Standard v9.3.2 I find that while I can open PDF documents, I can on
-
WONKY calculation bug in Numbers 3.0.1
Hi, This is wonky. It's a bit hard to explain in words, so best see the attachment to understand. You can download the attachment here: https://app.sugarsync.com/iris/wf/D162135_83773729_7822834 Basically, I have a number in each of A1, B1, and C1. T
-
I have music on my iPod from a library on an old computer. How can I transfer it to my new computer into a new library? I don't want to lose my current library on my iPod or computer.