Xcode 4.5 info.plist - xcode4.5

I am using Xcode 4.5 and trying to add keys to info.plist (using Add Row command from drop down list, or click on Plus button).
The problem is that the plist don't add any extra keys that I need. It updates just when I switch between tabs: summary and build settings. I mean when I add new row to plist it has to add it to itself, in my case it don't do it. I don't see any updates in runtime. Have you got the same issues?
I have attached file where I at. When I press this button nothing happen with my plist, but the plist should add new row (key that will be stored in xml) as I think.
I also have added video how it works.

You are trying to use the app's info.plist which has a fixed set of supported values.
I think you need to add a custom plist to your Xcode project, which can hold whatever values you want.

If you wan't to create your own drop down values you must create a definition structure, which is a type of Xcode Plugin. Here are two other discussions that explain it well.
How does Apple make the info.plist display its "Information Property List"?
Can I create a custom plist structure definition?

Related

Sqlite Browser issue working with Entity Framework

In DB I have a table (let it be Names), in project have DbSet Names field for that table. When adding row in browser it loads into project fine.
But when in project I do:
Names.Add(someName);
MyDbContext.SaveChanges();
It doesn't show in browser but loads next time in project.
If I add in browser another row it erase everything of what I have added from project and returns those rows what shows in browser only.
Is it bug a bug?
In a giagnostic tool there are also some errors. Mybe that is connected somehow:
image
Solved! The problem was that database file copies in bin/Degug folder and renew only if you made changes in root database file.
https://github.com/sqlitebrowser/sqlitebrowser/issues/1103

Retain folder sizes (height/width)

I have an OleCustomControl which displays the contents (documents &/or folders) of the path I specify.
I'm able to zoom in/zoom out (increase/decrease) which resizes the icons of documents &/or folders. For ex: I have set it to Extra Large Icons.
Once I close the application & re- run it, I want to be able to view it in the same way I set it last time i.e. Extra Large Icons.
Is there a way by which I can access this setting in power builder code?
If there would be one, I'll maintain the status & then set it back.
Since you didn't tell us the name of the control, we can't help you with specifics. Check the vendor website for documentation.
If you named the control ole_1, it should be something like this:
ole_1.object.thepropertyname = "thevalue"
or
ole_1.object.themethodname("thevalue")
I finally found the answer.
I can use the IconSize property to store the current icon sizes. I store this value & reset it when user opens the application again.
Ex: oleControl.Object.Document.IconSize
How I found this?
It should have been simple as the property name says it. However, I found it from the registry settings, where there is a registry entry for IconSize.

Browse for Project Folders in Build Template TFS 2010

I'm adding a new argument to my custom Build template. The argument is almost identical to the default Projects to Build argument under Required -> Items to Build. It simply shows a dialog window with a list of folders under current TFS Project. I can't figure out what the type of control is. I tried FolderBrowserDialog but it browses the computer rather than the TFS project itself. Any help would be appreciated.
You can set the Editor for this argument to:
Microsoft.TeamFoundation.Build.Controls.ServerFileBrowserEditor, Microsoft.TeamFoundation.Build.Controls
Or
Microsoft.TeamFoundation.Build.Controls.ServerFolderBrowserEditor, Microsoft.TeamFoundation.Build.Controls
See my blog for a detailed set of steps.
All of these types are Internal, so you can't reference them from your own code or see them easily. What you can do, is set them as Editor for a parameter you created in the Build Workflow. You need to specify Typename, Assemblyname. You can find these items in the MetaData section of your Build Template.
Add your argument to the workflow:
Open the Metadata property:
Set the editor for your property:
A multi-folder select dialog is not part of the Default UI Editors. You'd have to roll your own. Either use Reflector to see how the existing ones work, or use Reflection to invoke th existing editors as part of your new editor.
It's not going to be pretty code either way, but it would work.

"supported external accessory protocols" and info.plist in xcode

I read through Apple's EADemo project. I then attempted my own. But when I made my own, there's no place to put the supported protocol string. In Apple's EADemo project, if you look at the project info or plist, there's a spot called "Supported External Accessory Protocols".
How can I get that field to appear in my project?
Thanks!
The more common answer would be to select to "Add row" to your pList (just option click while on the page - no need to manually change source code) then scroll down or start typing in the name field "Supported External Accessory Protocols" then you can have that row added and it should automatically be set up as an array that you can then add your supported protocols to as items of the array
Nevermind...I had to open the plist as source code and manually change it...

Can't Rename Files In Xcode 4 Anymore?

Seriously, in previous versions of XCode I could right-click a file or group in XCode and I would get the "rename" option. In XCode 4 I can't seem to rename my files in XCode directly anymore. What happened? Why would Apple remove such a feature? How can I rename my nibs, image resources, and others in XCode now?
Note that if you're renaming a class, the best way I've found to do this is to open the class header, select the name of the class then control-click and choose Refactor / Rename. That way Xcode will rename the .h and .m files and replace instances of your class name (almost) everywhere it appears, including XIB files. Nifty!
Edit: in Xcode 4.2, watch out for this gotcha: "When initiating a refactoring rename operation from the declaration of a property, any Interface Builder files that refer to that property will not be updated correctly. Instead, perform the rename operation on a usage of the property, or an associated #synthesize statement."
The contextual menu item was removed, but you can still rename from within. Select the file and then click again in the name and you should get the editor field. Type away to rename. It can be a little temperamental though. The biggest problem I usually have is doing the 2nd click too quickly and it being registered as a double click. So you might need to play around with your timing a little bit to get used to it.
If you want the CM item back, make sure to file a bug report on it.
Select the file in the navigation window and press Enter.
Just the way renaming in Finder.
In case you want to change the path in case you moved some files...
Step 1: View -> Utilities -> File Inspector to open the file inspector
Step 2: Under Identity -> Path there is a white icon to change the relative path of the file
Furthermore, to rename the file, just refactor as stated above ;)
another way you can do it, is by using the little rectangle with an arrow in it which is at the bottom of the bar. Click on it, your items will be displayed in a list like view, you can rename it there the way you would rename files or whatever... Hope that helps
If you want to rename non-class files like png files just select file and choose 'Show File Inspector' from right click, then change file name from 'name' textfield (identify and type label).
I you want change class name, I recommend 'Simon Whitaker' Refactor method (second comment).

Resources