Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want the name of method of nsmutablearray which return the object at the given index and then remove this object from index and then sort the array accordingly.
Well, you're looking for two different things. To retrieve the object at a specific index in an array, you use -[NSMutableArray objectAtIndex:]. To remove an object at a specific index you use -[NSMutableArray removeObjectAtIndex:].
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I want to remove a line or a text from my application settings .
example: My.Settings.Bookmarks.
here is information in my settings of Bookmarks:
Name: Bookmarks | Type: System.Collections.Specialized.StringCollection | Scope: User.
Can anyone help me please because it's important
Here from MSDN
StringCollection.Remove
StringCollection.RemoveAt
The first one requires the string to remove, the second one the index of the string in the collection.
Suppose to have
StringCollection sCol = new StringCollection();
sCol.Add("STEVE");
sCol.Add("JOHN");
sCol.Remove("STEVE");
Really simple
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I saw quite a few examples with maps around the net with
MapView.showsUserLocation=TRUE;
What would be the corresponding equivalent with message passing notation?
That depends on the property declaration. In the standard case when no custom setter is declared it is:
[mapView setShowsUserLocation:TRUE];
Note that you probably want YES instead of TRUE.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I'd like to find the epoch time at which a certain row was loaded, so that I can pick out appropriate table decorators for fetching other events loaded in close proximity. How can I query this data?
AFAIK there is no automatically created column that holds the row time of creation - but you could certainly add one while loading data.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
That's the problem: I have to take an NSColor from the colorweel... how could I do? I tried declaring
NSColorWeel *weel;
But I don't know what to do next!
You could go read the docs?
Looks like you just call
- (NSColor *)color
to get the current color of the well, and
- (void)activate:(BOOL)exclusive
to activate it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have two NSArrays and I would like to change one object in the first NSArray with another object in the second NSArray.
This is what I tried to do, but with no luck:
[[arrrndwords objectsinindex:i] replace object in index:1 with:[arrword indexinobject:rndnum]];
It throws me out of the app when I run it.
The method you are looking for is:
- (void)replaceObjectsAtIndexes:(NSIndexSet *)indexes withObjects:(NSArray *)objects
but it is not available to NSArray because it's immutable, you should use a NSMutableArray.
[array replaceObjectsAtIndex:[NSIndexSet indexSetWithIndex:1] withObjects:[NSArray arrayWithObject:yourObject]]