osx-mavericks

NSSharingService to send email and read email body

会有一股神秘感。 提交于 2019-12-02 10:56:01
I am using NSSharingService to bring up an email compose window in the Mail app: NSSharingService* sharingService = [NSSharingService sharingServiceNamed:NSSharingServiceNameComposeEmail]; [sharingService setRecipients:@[@"test@blahblah.com"]]; [sharingService setSubject:@"Test"]; sharingService.delegate = self; It brings up the compose email window fine, and when I enter in some text and actually send the email, I even get a callback to the delegate: - (void)sharingService:(NSSharingService *)sharingService didShareItems:(NSArray *)items { NSLog(@"sharingService didShareItems - %@",

Setting Java home enviroment variable in OSX Mavericks

纵然是瞬间 提交于 2019-12-02 10:16:30
I am having issues with my Java path. I have installed the latest version of Java 1.7.0_51. When I open the Java control panel it tells me "Your system has the recommended version of Java." However when I go to terminal and type java -version I get java version "1.6.0_32" So after searching around I came across this SO Question which tells me that my Java home environment variable needs to be set. I then opened the bash_profile file and added the below line to the top of the file, above my Python path info. export JAVA_HOME=`/usr/libexec/java_home -v 1.7.0_51` # Setting PATH for Python 2.7 #

Undefined symbols for x86_64 when compiling

陌路散爱 提交于 2019-12-02 07:58:56
So I'm in an intro to Programming course in University and before anything else, let me say sorry for the poor formatting, I have no clue how to format this properly. But back to my questions, so we are primarily using c++ but I've been having some issues when I'm compiling my files. The compiler works for the most part and it will tell me when I have errors in my code but once I iron those out, it gives me a message saying that there are Undefined symbols for my x86_64 architecture. I tried looking that up and found some things saying that Macs (I'm running Mavericks) sometimes have

How to reference to images and other objects in Xcode and where to place them physically?

喜你入骨 提交于 2019-12-02 07:36:54
This question have been asked numerous times, but I have not managed to get an answer that I am happy with. Probably because the most answers is of "how do I do this?" type and also get "this way you do this" answers. The problem I have is that I need to use absolute paths when I want to reference to images in Xcode (version 6.0.1). I am quite sure that I could place the images in my working directory which is something like: /Users/patrikek/Library/Developer/Xcode/DerivedData/ChessGame- ftpbqerfsenxxbfvneyzfwdmtwjk/Build/Products/Debug Then add the file to some Xcode group in project

What is the difference between “echo” and “echo -n”?

梦想与她 提交于 2019-12-02 06:10:37
问题 The manual page on Terminal for echo -n is the following: -n Do not print the trailing newline character. This may also be achieved by appending `\c' to the end of the string, as is done by iBCS2 compatible systems. Note that this option as well as the effect of `\c' are implementation-defined in IEEE Std 1003.1-2001 (``POSIX.1'') as amended by Cor. 1-2002. Applications aiming for maximum portability are strongly encouraged to use printf(1) to suppress the newline character. Some shells may

How to add platform android (cordova) on Mac

China☆狼群 提交于 2019-12-02 05:07:39
i have follow the instructions. phonegab docs and How to add android to cordova platform? PATH error? my .bash_profile: export PATH=/usr/local/bin:$PATH export PATH=$PATH:~/Development/adt-bundle-mac-x86_64-20140321/sdk/platform-tools export PATH=${PATH}:~/Development/adt-bundle-mac-x86_64-20140321/sdk/platform-tools:~/Development/adt-bundle-mac-x86_64-20140321/sdk/tools [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* eval "$(rbenv init -)" but still Error while i executing cordova platform add android or ionic platform

SML not detecting OS on OS X Mavericks

旧城冷巷雨未停 提交于 2019-12-01 23:03:08
I could not run SMLNJ on Mavericks It shows me the error sml: unable to determine architecture/operating system I also looked in /usr/local/smlnj/config/_arch-n-opsys file and Mavericks is mentioned there. 13*) OPSYS=darwin; HEAP_OPSYS=darwin ;; # MacOS X 10.9 Mavericks Can some one help me on this? You can use this .pkg file to reinstall the SML and see if the problem happens again. 来源: https://stackoverflow.com/questions/20009628/sml-not-detecting-os-on-os-x-mavericks

How to get Java 32bit in Mac OS X Mavericks

纵饮孤独 提交于 2019-12-01 21:14:42
I'm trying to set up an Openfire XMPP server on my MAC, however the problem is that I needed to upgrade to Maverick for Titanium and once you upgrade to Maverick Java updates to a 64bit rather than the 32bit that is needed for Openfire. How can I get the Java 32bit again? musclez This Should help you on understanding how to run a 32-Bit java environment with the -d32 switch. However, the most recent version of Openfire should be 64bit compatible, found here . 来源: https://stackoverflow.com/questions/21865512/how-to-get-java-32bit-in-mac-os-x-mavericks

The file couldn’t be opened because you don’t have permission to view it

怎甘沉沦 提交于 2019-12-01 20:51:48
imageData=[NSData dataWithContentsOfURL:self.pdfFileUrl options:NSDataReadingMappedAlways error:&error]; NSLog(@"%@",[error localizedDescription]); NSLog(@"%@",imageData); in above code I get the error "The file “bg.png” couldn’t be opened because you don’t have permission to view it." I can't convert bg.png file to NSData. I encountered the same problem. What I did was to go to Build Options. Then I changed the value of the "Compiler for C/C++/Objective-C" to Default Compiler. Its work fine for me 来源: https://stackoverflow.com/questions/23774731/the-file-couldn-t-be-opened-because-you-don-t

Java 1.7 on OSX 10.9.2 running as 1.5?

安稳与你 提交于 2019-12-01 17:13:01
Pulling my hair out about this one. java -version and javac -version both report the same 1.7.0_45, but when I try to compile the simplest class I get a class file error: > cat A.java public class A {} > javac A.java A.java:1: cannot access java.lang.Object bad class file: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/rt.jar(java/lang/Object.class) class file has wrong version 51.0, should be 49.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public class A {} ^ 1 error There certainly is no JDK 1.5 installed. I don't think there