foundation

HTTP date format to NSDate

I have a date string (well, NSData, but that's easy to convert to a string) that's in what I believe is the format the HTTP standard uses: Mon Apr 17 19:34:46 UTC 2006 Is there any better (i.e. less error-prone) way to parse that than specifying the format string by hand in an NSDateFormatter? (My application is an iPhone app, but I ...

How to export a TFS projects portal to use as a new project template

Is it possible to create a TFS project based upon a modifed template and then modify the project portals website layout to include the logo, layout, and content that we would like to use and then export the TFS Projects portal to be incorporated with the default project template? ...

Read input from a cocoa/foundation tool console?

I wonder if Objective-C/Foundation has any special commands for reading user input from the console. Since it has NSLog for output maybe there is something else I could use instead of the scanf command. I need to read some numbers (user input) into my tool. What is the best way to get these input in types like double or int? And how do ...

NSSet and NSCountedSet, when is the best time to use them?

These two collection types are rarely used by me as I'm typically using their counter parts, NSArray, NSDictionary and the equivalent mutables. I have a feeling I'm missing out on a collection which can act much faster than the other two in certain situations. When is the ideal time to use these and how? ...

Can VisualSVN and Team Foundation Server client co-exist?

I currently run Visual Studio 2008 SP1 connecting to Team Foundation Server. I want to try out the VisualSVN client connecting to a separate repository I have in SVN. Is it possible to install the VisualSVN client on my existing dev machine such that I can use Visual SVN for some of my solutions and TFS for others? ...

I added a project to a solution checked into a team foundation server solution and the individual project I just added does not offer me the ability to check it in

I added a project to a solution checked into a team foundation server solution and the individual project I just added does not offer me the ability to check it in. Has anyone faced this in past? ...

Add folder and file using Team Foundation Server SDK

I am having a problem with a folder and a file showing up under my project which is under my solution. The files are being added to TFS but my project has no idea that the file exists and shows it as white Dim tfs As TeamFoundationServer = TeamFoundationServerFactory.GetServer(txtServer.Text) ' Get a reference to Source Control. Dim v...

Opinions on Microsoft Solver Foundation?

I looking into options for a linear and non-linear programming (optimization) framework. Requirements are: Support linear and non-linear programming problems with approx. 100-1000 variables and up to about 1000 constraints (I gather that is pretty simple). The non-linear problems have constraints involving multiplication or division ...

Merging NSArrays in Objective-C

I have an NSDictionary where each key points to an array. I later want to merge all of the values into one array. Is there a way to use the API to do something more efficient than say: NSArray *anArray = [someDictionary allValues]; NSArray *newArray = [NSMutableArray array]; start outter loop on anArray start inner loop on objects in...

The second parameter of MFCreateAttributes function

Hi, I am learning Media Foundation, and there is a parameter in MFCreateAttributes function I don't quite understand. The sample code as the following : IMFAttributes *pAttributes = NULL; const UINT32 cElements = 10; // Starting size. <<<<<<<< I don't understand this parameter // Create an empty attribute store HRESULT hr = MFCreate...

Media Foundation: The MFPlay object doesn't have to use MFStartup for the initialization?

Hi, Here is a question about MFStartup function in Media Foundation: According to the article "Initializing Media Foundation" (http://msdn.microsoft.com/en-us/library/ms704682%28VS.85%29.aspx), before using any Microsoft Media Foundation objects or interfaces, you must call the MFStartup function. But there is a sample from "MFPlay Tu...

Differences between Foundation frameworks on Mac OS X and iPhone

Curious: Why is it that Foundation on OS X contains a wrapper for CFHost (NSHost) but not CFSocket, and Foundation on iPhone OS doesn't even have NSHost? And as an aside, are there any libraries or has any written any wrappers for CFHost and CFSocket on the iPhone? ...

Adding string objects to NSMutableArray?

I have a little foundation tool test (Objective-C) that I am playing with and I have a few questions ... #import <Foundation/Foundation.h> int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int planetLoop; NSString *tempString; NSMutableArray *planetArray = [[NSMutab...

How to I restore deleted UIKit.framework and Foundation.framework and others

I deleted UIKit.framework and Foundation.framework in an xcode project my accident. I cant find the framework in the target information (general tab) link libraries section. How could I add them to the project again as i am now getting many many many errors!! ...

Is there a bug in NSOperation in Mac OS X 10.6?

If I release an instance of NSOperation before sending -init to it I get a segmentation fault. Reasons I think this is valid code: Apple does this in its documentation. Gnustep does it in its implementation of NSNumber, so it's fairly certain that this is in Apple's code too. (At least was.) NSObjects -init doesn't do anything, theref...

Error With Foundation.h

Hello, I learning Objective-C in Linux(Ubuntu), but when i tryed to compile my application that needs the Foundation headers i got an error saying that the file cannot be found, but i have installed the GNUstep development package(gnustep-devel). Here is my code: // Fraction.h #import <Foundation/NSObject.h> @interface Fraction: NSObj...

Difference Between Object And NSObject

Hello, I'm learning Objective-C and as I can see, in some tutorials they use Object(imported from objc/Object.h) and in others i see the use of NSObject(imported from Foundation/NSObject.h), but what are the main differences between they? Regards. ...

NSArray of Dates sort

Consider this array. It has no keys, so I am not sure I can use NSSortDescriptor. What would be the best method to sort them? ( "Thursday, July 30, 2009", "Monday, September 07, 2009", "Wednesday, September 09, 2009", "Friday, August 14, 2009", "Saturday, September 05, 2009", "Monday, August 10, 2009", "Thu...

Get files from TFS under Linux

Hi, is there a free (command line) tool for linux which with I can get all files from a TFS-Repository (no Check in / Check out required - only get actual version)? greets CFI ...

Questions About The Foundation And NS Library

Hello, I'm a Objective-C learner and I don't have a Mac, then I need to use my Linux with GNUStep, but if I develop my own program on it, the end-user will need to have GNUStep(like .Net) installed and then I started thinking how can I solve this, then I had an idea: "Create this from scratch!", but now to do this I need to know: What ar...