MapView snippet objective c dot notation vs message passing notation? [closed] - objective-c

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.

Related

How to execute SQL view [closed]

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 a view called 'selectView' in my postgresql database.
How i can get the results in to my server.js(nodejs code) like,
select * from selectView
Please suggest.
Sorry for the earlier mis-understanding. Didn't know node.js was server-side. A little search engine (you know the one) tells me that there's a postgresql library available for node.js. That should help you out.
Look here: https://github.com/brianc/node-postgres

NSColorWeel in objective-c.... how does it works? [closed]

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.

Removing dots from a date in a url [closed]

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 have the following URL in a table and I am given the responsibility to develop a script to remove the dots around the date.
For example:
The Date: 2013.01.20 should be read like the following in the url:
http://local.website.net/doc/q?file=5448245&date=20130829&ref=65457
Note the dots for http://local.website.net should not be removed.
How I can get started on this?
DECLARE #doc varchar(500) = 'http://local.website.net/doc/q?file=5448245&date=2013.08.29&ref=65457'
SELECT SUBSTRING(#doc,0,CHARINDEX('date=',#doc))+REPLACE(SUBSTRING(#doc,CHARINDEX('date=',#doc),LEN(#doc)),'.','')
SQL fiddle

How to change object in NSArray [closed]

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]]

First version of gcc to implement Objective-C? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I want to know what was the first version of GCC that supported Objective-C ?
Yep. I see this question as likely to be moved to meta or something.
But in any event, the answer you want is 1988.
(which I found by looking in Wikipedia under the "Popularization through NeXT" section)