Questions tagged [foundation]

Foundation is a framework written in Objective-C that implements many useful classes and functions. For the responsive front-end framework Zurb Foundation, please use the tag [zurb-foundation].

Foundation is a framework written in Objective-C that implements many useful classes and functions. Foundation is used by almost any Objective-C application, as it provides memory management and other runtime features, without the need to use the Objective-C runtime API directly.


References

Related Topics

Separate Topics

This topic is often confused with:

941 questions
0
votes
0 answers

NSTextView with shadow

I'm trying to add a nice looking shadow to a NSTextViews string, I have this Code so far: NSShadow *textShadow = [[NSShadow alloc] init]; textShadow.shadowColor = [[NSColor blackColor] …
miradorn
  • 75
  • 6
0
votes
2 answers

iPhone SDK: How to extract this number from a string

I have a script for an application and I'm stuck on a way to extract a specific number For example in: \n@JulianJear\nApplication Development 4 iPhone and iPad.\n5\n I haven't been able to come up with a way to remove the "5" without also getting…
mrprogrammer
  • 87
  • 2
  • 10
0
votes
1 answer

Can't use method on an instance variable

Why doesn't testVariableValues have the method dictionaryWithObjectsAndKeys? @property (nonatomic, strong) NSDictionary *testVariableValues; I'm trying to use the method like so: [self.testVariableValues dictionaryWithObjectsAndKeys:......] The…
el_pup_le
  • 11,711
  • 26
  • 85
  • 142
0
votes
3 answers

Memory management of Objective-C 2.0

I'm a beginner in Objective-C. I'm studying memory management in Objective-C by writing simple command line code. My environment is below. Mac OS X Mountain Lion. Xcode4.5 I wrote a code below. test.m 1 #import 2 …
0
votes
2 answers

Why does -[NSObjectController selection] return a proxy object?

NSObjectController and its subclasses return a proxy object for the selection. I'd like to understand why they chose to design it this way. The documentation doesn't seem to shed much light on why this is.
eyebrowsoffire
  • 957
  • 7
  • 15
0
votes
1 answer

Using NSError the right way with non BOOL returning functions

Looking at the Error Handling Programming Guide, I understand that in cases like the following I must never evaluate the NSError parameter theError unless the return value is NO BOOL success = [myDoc writeToURL:[self docURL] ofType:@"html"…
SystematicFrank
  • 16,555
  • 7
  • 56
  • 102
0
votes
1 answer

Cannot appending a filename using "stringByAppendingPathComponent" (Foundation)

The problem here is that I cannot appending a file name using "stringByAppendingPathComponent" fma is a NSFileManager. Working: [fma changeCurrentDirectoryPath: [NSHomeDirectory() stringByAppendingPathComponent: @"Music/iTunes/iTunes…
PlusA
  • 545
  • 1
  • 6
  • 15
0
votes
2 answers

Creating local objects, prefrence or simply better?

Is it better to create a local object for later use like NSDictionary *dic = [NSDictionary Dictionary]; or NSDictionary * dic = nil; Is it preference thing or is one better then the other?
Yuliani Noriega
  • 1,085
  • 12
  • 23
0
votes
1 answer

why does ios componentsseperatebystring not return memory?

My co-worker and I are having a problem we are trying to fix. It has to do with memory allocation. Our code uses loops and componentsSeperateByString to split a large document by the character "\n". The weird thing is that this never returns all the…
Raigex
  • 1,205
  • 12
  • 32
0
votes
1 answer

Resource File Not Found after App Upgrade?

My app is bundled with two preinstalled videos, and the user can purchase more through in-app-purchase. Each video episode is an objective-C object with an ivar called _videoFilePath (property NSString* videoFilePath) When a video finished…
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
0
votes
3 answers

NSMutableArray Comparison

I have two NSMutableArrays. One array consists of records from the database and the other array consists of records from webservices. I want to compare each record from the database array to each record in the web services array using a unique key…
0
votes
1 answer

NSDistantObject header missing

I'm playing around with some tutorials on Distributed objects - I just tried to declare an NSDistantObject but got an 'Undeclared identifier' error. When I looked through the header files in the foundation framework, there is no header file for…
Gravedigga
  • 197
  • 2
  • 7
0
votes
1 answer

Copying TFS History of two similar projects

I have two copies of the same project, say Project1 and Project2. The contents of the two projects are same. However, Project1 is having a history, and as Project2 is just a copy of Project1, it doesn't have a history of its own. Now, to maintain a…
0
votes
1 answer

Difference between NSLog and LOG

What differences does exist between that two commands. NSLog(@"Hello World!!"); and LOG(@"Hello World!!"); NSLog does display the message to the console, but LOG doesn't. So what is LOG for? Thanx in advance.
Malloc
  • 15,434
  • 34
  • 105
  • 192
0
votes
4 answers

Writing an array of NSDictionaries to documents?

I'm trying to write an NSArray of NSDictionaries to the documents folder. I'm using BOOL fileWritten = [favoritesArray writeToFile:fullFileName atomically:NO]; if (fileWritten == NO) { NSLog(@"Writing favoritesFileFailed"); } The…
Sam
  • 598
  • 4
  • 16