It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Pretty confused newbie here:
I have a class, this class is adding columns to a table. In a first step this was done by hitting a button. I've added a generic object to the interface builder, assigned the class that adds the column to the table and made the connections; this way when I hit the button the columns are added. Now I need to modify this program and run the method whenever a document is loaded (document based application), so I need to call my method from inside the - (void)windowControllerDidLoadNib:(NSWindowController *)aController method. Now what confuses me is: how can I call a method of an object that is connected to the interface builder?
--- EDIT ---
If you feel you have to downvote, please at least say why! since I am a newbie what may sound like a stupid question for you is a pretty advanced question for me.
--- EDIT 2 ---
Probelm found, check my own answer.
You need to create an outlet. Control drag from IB (Interface Builder) to the View Controller.
I found what the problem is: my class adds column to the table by reading out informations from a NSarraycontroller. this NSArraycontroller is populated by the coreframework. but it is populated only AFTER the view is loaded so i cannot fill the tables at startup without using a timer or something like that!
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to create an iPad application in which there are four windows on single screen.
these windows should be updating simultaneously (Multitasking). How i can do this any suggestion/help will be appreciable
I'm going to assume that you mean views and not windows.
First, make sure you're not over-complicating the interface. It should be intuitive, and four distinct simultaneous views sound like a lot (of course, it depends).
Second, create a UIViewController. Then, create four UIView subclasses, with all the properties and objects you need, lay them out as subviews, and build the logic into the UIViewController, which can be the delegate for them.
I hope this helps get you started in the right direction, but as others have said, this is a broad question and there are many applicable approaches.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
i am very new to objective-c, but i want to make some app that does the following:
1 It has object library (shapes, text fields and so on), i keep in on a panel on my app.
- the task is to drag a shape to the main form and place it somewhere where i like on my form: kind of same thing like in the Interface builder.
2 resize the shape (Actually an UIIMage).
It's pretty same with the Interface builder.
I would very appreciate for any example code that helps me to solve this task.
EDIT:
Exactly the same but for iOS exists here:
https://github.com/spoletto/SPUserResizableView
As i can see in the code it's not very easy task so this question is considered answered.
You can start by checking this out:
https://developer.apple.com/library/mac/#samplecode/DragItemAround/Introduction/Intro.html
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am new in rails 3
I want to use some count down in my view.
so I need some ajax query.
where will we write ajax code and how to use it in view?
Please help.
Thanks.
Any javascript functionality would be considered front-end. In rails or in a typical model-view-controller web framework, the view would be responsible to deal with any ajax or other javascript code. The best possible way of doing this, is having the view (a layout file, or action file) include a javascript file. Your javascript file would then have a function that would incorporate the ajax request. Your view should be the place to fire off the function. Just like an event system, the javascript would register the event (function), and the view would trigger that event. If it's just a single ajax request then you could also leave out the trigger inside the view, and have a $(document).ready({...}) call inside your javascript file.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
In my project, inside a view I want to create a grid (gridview) as excel grid. What tools can I use?
NSMatrix and NSCollectionView are not available on iOS.
Have a look at AQGridView: https://github.com/AlanQuatermain/AQGridView
(If you're attempting to build something as complex as a spreadsheet, though, you might eventually find that you need to build something custom.)
Sounds like you want to take a look at NSMatrix or possibly NSCollectionView depending on what you want to store in your table cells. NSMatrix would be the direct analog to the Excel grid.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
I am not clear what these terms mean:
Class
Method
Function
Can you please explain these terms to me?
You should first begin with Object Oriented development (maybe http://en.wikipedia.org/wiki/Object-oriented_programming). Because the class, method and function topics are not Java-specific.
Then you can see how Java works and how to build classes with it.
A class is a way of representing a group of objects. Sun/Oracle describes more about a class in What is a class? For example a car is a class of motorized vehicles with four wheels (among other things)
A method is a section of code that is declared to take some arguments (things like numbers) and return a value of a given type. A method has a body that determines what it does. Other parts of your code can call that method, at which point the code in your method is run and the return value can be used by the code doing the calling.
The word function is not really used when discussing Java, but if it is used it is a synonym for method.