Assuming your cstring is null-terminated, you can use [NSString
stringWithUTF8String]
On Thu, Jul 23, 2009 at 2:41 PM, Alexander Bokovikov
wrote:
> Hi, All,
>
> This is my first attempt to deal with Cocoa container class, so I have some
> unclear points. I've found one of many tutorials here:
>
>
Does the iPhone have NSURLConnection? If so, you can just point that to
www.whatismyip.com or a similar site, and just parse the information.
On Mon, Jul 20, 2009 at 3:11 PM, Clark Cox wrote:
> On Sun, Jul 19, 2009 at 10:50 PM, James Lin wrote:
> > Hi all,
> >
> > I found this code snipet that's
On Sun, Jul 19, 2009 at 11:40 AM, Scott Ribe wrote:
>
>
> Once you have removed from source files and saved, then in the inspector
> panel, on the connections tab, you can click to remove...
I'm pretty sure once you remove the IBAction/IBOutlet from the header file
and save, IB will synchronize
Hello,
I have a NSString (from a property list file) that has the %@ formats in
it... So.. I do something like this:
NSString *stringFromPlistFile;
NSString *newString = [NSString stringWithFormat:stringFromPlistFile,
@"Hello"];
But that doesn't work...
Keita
I use this in my CF tool:
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
- (NSString *)getHWEthernetMAC {
NSString *deviceName = @"en0"; // Ethernet device is en0
int mib[6];
size_t len;
char *buf;
unsigned char *pt
My opinion on IB is... I use Macs because it's so easy to design interfaces.
On Mon, Jun 15, 2009 at 7:13 AM, Steve Bird wrote:
>
> On Jun 15, 2009, at 6:56 AM, Chunk 1978 wrote:
>
> what are your thoughts? are developers who don't use IB masochists,
>> or is it a wise choice?
>>
>
>
> The pri
Hello,
I'm writing a Foundation tool that is only run by root (by launchd).. This
tool is using NSTask to call another program, but it seems like the program
that i'm calling within the NSTask is not given root privileges...
I'm not sure what I'm missing, do I have to use the Security framework?
I guess that would work, but if I were to do that, it would just be easier
to package the other tool alongside my tool ( I don't have access to the
source code yet, unfortunately).
Thanks for the advice.
On Sat, Jun 13, 2009 at 7:04 PM, Quincey Morris wrote:
> On Jun 13, 2009, at 1
Well, I'm making a command-line tool that uses another tool, and it would be
convenient if that other tool could be packaged right inside the first tool.
So, the bundle structure is basically out... Right?
On Sat, Jun 13, 2009 at 5:30 PM, Kyle Sluder wrote:
> On Sat, Jun 13, 2009 at 2:2
I was just reading this:
<
http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/ConfigFiles.html#//apple_ref/doc/uid/20002091-SW1
>
And I was thinking, is it possible to put other types of files in a flat
executable file? Like, a picture file, or even another executa
I'm not sure if there are any APIs, but you can use hdiutil
man hdiutil
On Fri, Jun 12, 2009 at 5:01 AM, vvvsn murthy wrote:
> Hi,
>
> I am new to Cocoa Framework.I want to know how to mount and unmount dmg
> files programmatically using cocoa framework.I have worked with command
> line
> option
Thu, Jun 11, 2009 at 12:10 PM, Nick Zitzmann wrote:
>
> On Jun 11, 2009, at 5:19 AM, KK wrote:
>
> I am writing a "Foundation tool" - a command-line utility that uses
>> Objective-C and the Foundation framework, and I'm trying to save
>> preferenc
Hello,
I am writing a "Foundation tool" - a command-line utility that uses
Objective-C and the Foundation framework, and I'm trying to save preferences
under the application domain.. My understanding is that you would need a
bundle identifier to do this, but if it's just a tool, can it have a bundl
>
>>
>>
>>
>>>
>>>
>>> Am 08.06.2009 um 23:58 schrieb KK:
>>>
>>> Use [launchOption state] == NSOnState or [launchOption state] ==
>>>> NSOffState
>>>>
>>>> Keita
>>>>
>>>> On
Use [launchOption state] == NSOnState or [launchOption state] == NSOffState
Keita
On Mon, Jun 8, 2009 at 5:52 PM, Martin Batholdy wrote:
> Hi,
>
> I have added a NSButton Check Box to a window.
>
> Now I want to grab the state of this check box.
>
> I added an IBOutlet to my header file and conn
instead of [s isEqualToString:], you could use [s compare:]
On Fri, Jun 5, 2009 at 11:53 AM, Pierce Freeman wrote:
> Hi KK:
>
> I was aware of this method to do so, but can this be done if you needed to
> search for, say, “Good” and wanted it to return Goodbye?
>
> Th
I'm not sure if this is what you're looking for, but Objective-C 2.0 has
this:
NSArray *a = [NSArray arrayWithObjects:@"Hello",@"Goodbye",nil];
for (NSString *s in a) {
if ([s isEqualToString:@"Goodbye"]) {
NSLog(@"it is equal");
}
}
And you can have an additional int (or NSInteg
I ran into a similar problem - but I decided to use libcrypto:
man 3 sha1
or
man 3 EVP_DigestInit
Keita
On Thu, Jun 4, 2009 at 9:29 AM, Ken Tozier wrote:
> Hi
>
> I wrote a SHA class using the algorithm at
> http://en.wikipedia.org/wiki/SHA1#SHA-1_pseudocode and while it runs
> without crashing
Hello,
I am writing a program that needs to load hierarchical data from an XML
document (that I have loaded into a NSXMLDocument), into a NSBrowser...
I tried modifying the SimpleBrowser? example code to suit my needs, but then
I started wondering if Core Data would be able to do it... I looked up
19 matches
Mail list logo