|
More site info...
Mac Programming | Forum profile
|
|
Forum profile page for Mac Programming on http://www.macrumors.com.
This report page is the aggregated overview from a single forum: Mac Programming, located on the Message Board at http://www.macrumors.com.
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "Mac Programming" on the Message Board at http://www.macrumors.com is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on Mac Programming:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
93
|
361
|
1,135
|
|
Post:
|
258
|
1,065
|
3,435
|
|
|
Mac Programming Posting activity graph:
|
Top authors during last week:
user's latest post:
Best book to learn Cocoa and...
Published (2009-11-25 17:32:00)
Quote: Originally Posted by steezy1337 i'm currently learning c++ at college as part of my foundation degree (UK) but i'd like to look more into developing apps for mac, would i be okay to go straight to the Hillgrass book or should i still go with learning objective c first? Try an online Objective-C tutorial. If you can pick up the language in a weekend, skip buying a book for it. If you can't pick it up, buy the book. Any...
user's latest post:
Hello world help
Published (2009-11-24 22:59:00)
You can name your method whatever you want. Maybe call it "helloText". Using that example, you would first need to declare it in your header file as such: Code: - (NSString *)helloText; Then, plug that into the implementation file: Code: - (NSString *)helloText { ... blah blah ... } To call it, use: Code: [self helloText]; If you want to put the method's returned value into your text view, use: Code: [msg...
user's latest post:
import java.util.Scanner not...
Published (2009-11-23 10:41:00)
textmate seems less involved than other IDEs, but one way or the other, i feel that when people are beginning using the command line to compile and run code is the only way to do it. You get comfortable with the tools, the errors are more straight-forward, etc. Once you have mastered those things, and have a better idea of how everything works, and you NEED the power an IDE provides, then it's reasonable to give one a whirl. I'll...
user's latest post:
Shell, executing a command based...
Published (2009-11-25 21:20:00)
is there anyway that the script can tell what it's containing folder is ? for example, instead of this: Code: printf "Please specify your server's path:" read MYPATH echo "$MYPATH" > path #just basically a test to see if it's reading the input cd $MYPATH I could have something like: Code: cd $CONATINING_FOLDER So that you don't have to input the folder path everytime?
user's latest post:
n00b C++ problem - Page 2 - Mac...
Published (2009-11-25 22:35:00)
So sorry I haven't responded...been really busy with chemistry these days. I'll have a look through that example and get back, hopefully tonight.
user's latest post:
Sort a text file in Applescript
Published (2009-11-18 08:19:00)
I have figured it out. Thanks for the help. The problem was I needed to make Set the_list to Every Word of the_data. not excluding the Every word part. here is the complete script. set namez to text returned of (display dialog "What's your name?" default answer "names") set theFilePath to (path to desktop) & namez & ".txt" as string set quote to ASCII character of 34...
user's latest post:
C++ header that includes...
Published (2009-11-23 04:26:00)
Quote: Originally Posted by lucasvickers 1 - Why would someone put the curlpp/ in the include? This is a form of namespacing. Suppose you use lots of libraries in your project, chances are that a file called "utilities.h" or "types.h" exists multiple times. If you add all directories for these libraries to your include path, the compiler will simply pick the first one it finds. If you only add the top level...
user's latest post:
NSThread Cancel
Published (2009-11-25 18:08:00)
Hmm... you'd need to declare it volatile if you want to not use a lock. Otherwise the compiler is free to hoist the check out of the loop. i.e. convert this: Code: while(!cancelled) {} into Code: if (!cancelled) { while(1) {} }
user's latest post:
File/Directory error
Published (2009-11-19 06:19:00)
Quote: Originally Posted by fumixene cout << “var1+10 is “; //output text cout << var2 << endl; //output value of var2 This was my original code and of course I fixed the quotes. Isn't it correct syntax to write: cout << "var1+10 is "; cout << var2 << endl; which was my original intention (you can see on the first...
|
|
|
|
Latest active threads on Mac Programming::
Started 2 weeks ago (2009-11-13 02:37:00)
by lloyddean
There is nothing wrong with the code as posted. Perhaps the code being compile is different than what's here?
Started 1 day, 21 hours ago (2009-11-25 14:23:00)
by xStep
Quote:
Originally Posted by TheChubbyBunny
Code:
./Compiler.sh: line 56: syntax error: unexpected end of file
The script you have supplied doesn't have 56 lines, so another script is must have the error. What is on line 56 there?
Also, it's been a while since I've done scripting, but you have...
Started 4 days, 23 hours ago (2009-11-22 11:58:00)
by rowsdower
Did you install a different version of Python? Maybe Eclipse is picking up the Python that came with the system.
Started 2 days, 9 hours ago (2009-11-25 01:43:00)
by Catfish_Man
Have a BOOL protected by a lock (or, equivalently, an atomic BOOL property) that you check periodically from the background thread and set from the foreground thread when you need to cancel.
Started 2 years, 4 months ago (2007-07-30 00:02:00)
by iSee
The single best book for Objective-C is "Programming in Objective-C" by Stephen G. Kochan.
Started 2 days, 14 hours ago (2009-11-24 20:41:00)
by gnasher729
Slightly hard to find the problem, because you didn't say what kind of error you get (really helpful information), but when I read through your header file, there was one method where I thought: "Huh? That can't be right" and if you read the error message carefully, you will probably find what's wrong.
By the way, do you really want these constructors to be public?
Started 2 days, 12 hours ago (2009-11-24 22:59:00)
by kainjow
You can name your method whatever you want. Maybe call it "helloText". Using that example, you would first need to declare it in your header file as such:
Code:
- (NSString *)helloText;
Then, plug that into the implementation file:
Code:
- (NSString *)helloText
{
... blah blah ...
}
To call it, use:
Code:
[self helloText];
If you want to put the ...
Started 1 month ago (2009-10-28 08:42:00)
by kainjow
I doubt there's a way to get around requiring root, since the pmset manual specifically says it's required, but if you can get Automator to run an AppleScript directly then this is probably the preferred way to do it:
Code:
do shell script "pmset displaysleep 1" with administrator privileges
Edit: looks like you can embed the username/password in the script directly:
Code:...
Started 2 months, 2 weeks ago (2009-09-08 16:13:00)
by David2070
Yeah, I have the same problem. I'm not sure what the problem is, but its definately not as stable as it was under Leopard.
|
|
Hot threads for last week on Mac Programming::
Started 1 day, 21 hours ago (2009-11-25 14:23:00)
by xStep
Quote:
Originally Posted by TheChubbyBunny
Code:
./Compiler.sh: line 56: syntax error: unexpected end of file
The script you have supplied doesn't have 56 lines, so another script is must have the error. What is on line 56 there?
Also, it's been a while since I've done scripting, but you have...
Started 4 days, 23 hours ago (2009-11-22 11:58:00)
by rowsdower
Did you install a different version of Python? Maybe Eclipse is picking up the Python that came with the system.
Started 4 days, 5 hours ago (2009-11-23 06:13:00)
by ebrithil15
Running Xcode C++ program without Xcode?
Hello,
I just started to teach myself to program in the C++ language and i have just finished writing my first program with an actual function but I'm wondering how i run the program without Xcode.
So my question is basically can i run this program on my Mac (or any other Macs) ...
Started 1 week ago (2009-11-19 12:08:00)
by kainjow
From a google it looks like "shlb" just represents a generic shared library. Are you looking for a specific file?
And why are you still developing for an ancient OS
Started 5 days, 17 hours ago (2009-11-21 18:01:00)
by robbieduncan
It depends. You could put the common parts in a new Framework project then put that Framework in each application project. Or you can create two targets in the same Project, each target would contain some of the files and build different apps.
Started 6 days, 23 hours ago (2009-11-20 11:55:00)
by Catfish_Man
Why not use the system log via CFLog() or Apple System Logger ( http://developer.apple.com/mac/libra...3/asl.3.htm l)?
Started 4 days, 1 hour ago (2009-11-23 10:12:00)
by aztastic
import java.util.Scanner not working with TextMate?
Hello everyone!
I've just started a programming class at Uni, and we're dealing with Java.
Consequently I got TextMate to work with, as I've heard many good things about it - but I stumbled upon a problem.
One of the practice assignments we were supposed to do was related to the...
Started 5 days, 17 hours ago (2009-11-21 17:35:00)
by lloyddean
It's likely its developer means for it to sit along side the CURL headers which on Mac OS X are at /usr/include/curl/curl.h. Being that this is a system header include path it is accessed with '#include <curl/curl.h>'.
I don't recommend placing the 'curlpp' headers in the systems '/usr/include'. Instead if you're finding yourself using a good number of *nix libraries I'd suggest ...
Started 3 days, 17 hours ago (2009-11-23 18:27:00)
by kainjow
Try this:
Code:
say "hello" saving to POSIX file "/Users/you/Desktop/test.aif"
Started 1 week, 2 days ago (2009-11-17 18:04:00)
by chown33
Assuming your sort algorithm works with the builtin data, it suggests the problem lies in the code that reads the file into a list, or the text of the file being read.
Unfortunately, you haven't shown any actual code that reads a file into a list, nor have you shown what text is in the file. You also haven't said what error message appears, if any. "It gives an error" is too vague....
|
|