What's the name of this component in AppKit? - objective-c

I want to know the name of sidebar-like component below.
Screenshot of AirMail
Screenshot of Tweetbot
Both of them have same width and similar appearance, so I thought that the component is available in AppKit but I couldn't find it in documentation by myself.
I've googled about NSTabViewController and NSSplitViewController, but I don't think they are the answer I want.
If you have any idea, please tell me!

Airmail is using a subclass of NSTableView as you can see in the following screenshot showing Airmail and F-Script Anywhere side-by-side:
F-Script Anywhere is generally very useful for finding out which UI components an app is using. Another good alternative is the new Debug View Hierachy feature in Xcode. To use this, open any macOS project in Xcode, then attach the debugger to the app you would like to inspect (Debug - Attach to Process) and click the Debug View Hierarchy button.

Related

Cocoa/objectiveC UI design issue

I'm trying to build an app on MacOSX - ObjectiveC. I don't not find a good ressource to understand how I can create the view I need and the steps to made it.
I'm looking mostly to create 3 sections.
Section 1: Few buttons and one image
Section 2: TreeView to have a File browser/finder
Section 3: Progress bar to show the disk usage.
I'm creating an app to read android device and manage file transfer. Such as Android File Transfer.
First and foremost you need to look over the tutorial that Apple provides on creating your first Mac app.
Second you can use NSOutlineView to create your treeview, here's a tutorial on this.
Then you need NSProgressIndicator for your progress bar, here's a tutorial.
I also suggest you look over at ray's tutorials to get started with XCode and all the interface builder tools.

how to navigate to settings in android emulator using robotium?

I am a newbie for Robotium and till then I managed to learn a lot by directly writing test cases for public websites and sorted out several issues from answers in stackoverflow. now, I seemed to hit the wall at this (probably)trivial problem.
I would like to navigate to 'Settings' icon which is inside 'Apps' menu of the android emulator using some sort of 'robotium-solo' method.
This is my failed attempt:
solo.sendKey(KeyEvent.KEYCODE_HOME);
//solo.clickOnImageButton(2); // no success!
//solo.clickOnActionBarItem(2); // no success!
solo.clickOnText("Settings");
solo.clickOnText("Music");
I checked for any KEYCODE_var for home screen 'app' icon but couldn't find one.
There is no useful log message in DDMS to figure out the starting activity when clicked/tapped on that button.s
Please guide me whether my approach is any good and help me with an answer. Thanks.
you can check with getCurrentViews() and have the list of views displayed before clicking the menu button and after clicking the menu button.By comparing them you can get the view of the new views displayed (i.e. settings button).
After getting the view,you can go with solo.clickOnView(ViewNameObtained);
This will solve your problem for sure.
As far as I know, navigating to settings is not possible with robotium. Even if you would be able to go there you cannot perform any other action as Settings are not port of your application. Android Instrumentation allows performing actions only within one package and robotium is only wrapper for that, so it's not able to click outside your application as well.
You can use UI Automator for that.

Properties of iOS messenger

I need to build an app such as "Messages" in iPhone, but easier (don't need to send messages to server, only in datebase). I was faced with some questions.
http://www.ibm.com/developerworks/library/x-ioschat/index.html
In this tutorial messages look like TableView, how can I do them such as in iPhone standard messanger (comics speach). And how can I implement bar with camera button, text box and send button (what class is responsible for this)?
You are in luck good sir, there is already a class that can fix you up with this and avoid all the work, it's called AcaniChat (screenshot provided). Or you can even see at Sam Soffle's SSMessagesViewController, he is a well known iOS developer who built this class.
It will definitely help you, if you want to mimic that behavior.

Accordion Menu in XCODE

hey, I'm trying to make a accordion menu in Objective-C for a iPad app. The only thing I know is that I should look over core animation.
Couldn't find anything helpfull.
Can anyone help me ? at least give me a few pointers.
i am also trying to implement Accordion Menu for iPad.. i have been doing some research and found that this link is a good help...
http://www.deepinthecouch.com/iphone-sdk/accordion-uitableviews-programming-backwards
(Go here for the archived version)
i have tried putting in the codes in this blog to my project, but i kept getting some weird errors..
so instead, i am taking the concept and try to implement something myself...
if u get ur accordion menu work, do share it.. i will do the same... :)
[Update] : i have revisited the blog page again just now, and found that the author have added a new entry and added a piece of code that works...
Have a look
http://www.deepinthecouch.com/iphone-sdk/accordion-uitableviews

How build a custom control in Xcode for the iPhone SDK?

I want to build a custom control to reuse in my project which consists of two UITextFields that are linked together + a label.
It is starting to become repetitive across my App and smells of code duplication ;)
However, I wonder what is the best aproach here.
Is it best do everything by code in a controller or is posible do a visual thing like the ones built-in in Xcode?
You can build an Interface Builder plug-in for this. It's fairly straight-forward. To get started, read the Interface Builder Plug-In Programming Guide. It even has a quick, step-by-step tutorial to get you started. Apple recommends creating a plug-in to IB for just your case...
I don't think this is possible. I briefly looked at the IB Plug-In Programming Guide and apparently Interface builder plugins are implemented through Custom Cocoa Frameworks. That is, your plugin is defined in a framework which is loaded in Interface Builder. IB looks in the current projects frameworks to find any custom components defined and will load plugins accordingly. It is not possible to use custom or third party frameworks on the iPhone so I don't see how IB would make a connection here. If somebody has more info I'd love to see this discussion continued.
This is fine except it is for the iPhone. The iPhone presents a more difficult environment to create the plug-in for interface builder. It should be possible but I have yet to see a Xcode project that does this. They are all limited to creation of desktop "AppKit" versions, not iPhone "UIKit" versions of the plugins for IB.