foundation

Sharepoint Foundation 2010 development environment installation problems

I'm having problems installing development machine for Sharepoint (Foundation) 2010. This is what I did so far on the same machine: Installed a clean Windows 7 x64 with 4GB of RAM without being part of any domain. Just a simple standalone machine. Enabled IIS related features as described here except IIS6 related ones (two of them) Ins...

How to iterate over an dictionary without knowing the keys, while getting key and object?

I have an NSDictionary and want to iterate over the objects. But at the same time, I need to know the key of the dictionary. I remember there was a special, fancy form of fast enumeration, but have forgotten the exact syntax. Anyone? ...

Sane(r) way to get character-encoding of the CLI in Mac OS X?

Hi all! I was writing a CLI-Tool for Mac OS X (10.5+) that has to deal with command-line arguments which are very likely to contain non-ASCII characters. For further processing, I convert these arguments using +[NSString stringWithCString:encoding:]. My problem is, that I couldn't find good information on how to determine the characte...

strtotime -> NSDate

Hello, is there a way to convert strtotime-like Strings (e.g.: '-3 days' with a given date) with NSDate? ...

What is a pool in in Foundation Kit?

Every time I write a new iPhone Application, I start with creating the Target, adding the frameworks, and writing this in a brand new main.m: NSAutoReleasePool *pool = [[NSAutoReleasePool alloc] init]; // etc... What is actually such a pool? What is it for? It surely doesn't protect the device when it falls in a swimming pool. But why...

Changing the Duration of DelayActivity with a Different Duration

My custom activity has a delay that will need to be set different values at different times. The first time it is set, it might be 5 seconds. The second time, it might be 10 seconds, and so on. How can one do this... Delay does not have an ActivityContext lambda that will allow me to get a workflow variable. ...

Extend Workflow Foundation FlowChart

I would like to create a custom reusable workflow foundation activity based on the FlowChart activity. All of the built in classes are sealed therefore I cannot inherit it. These activities will be used in an application which re-hosts the workflow designer and used by non-developers. I can inherit from the NativeActivity class. Howev...

Converting NSString to int

Possible Duplicate: NSString is integer? I've been searching around for the last half hour trying to find an easy way to convert an instance of NSString into an integer, and to be able to tell if the string was validly formatted. So far, I haven't been able to find anything. There's the intValue and integerValue methods in N...

Find out the working folder in a Foundation executable?

I have a console program which is linked to the Foundation framework on Mac. How do I find out the folder the executable is in? ...

How to enforce a Square number constraint in Microsoft Solver foundation OML?

I want to limit the result to only square numbers ( I am using excel plugin). How do I enforce this? As in, Minimize Goal X subject to a condition that X is a square number. ...

How can I optimise out this nested for loop?

How can I optimise out this nested for loop? The program should go through each word in the array created from the word text file, and if it's greater than 8 characters, add it to the goodWords array. But the caveat is that I only want the root word to be in the goodWords array, for example: If greet is added to the array, I don't want...

windows workflow foundation video tutorial

I am very new to wwf, not new to c# though. It seems that it's a great idea to do development using wwf when I watch those few video tutorials on youtube, however, all the tutorials show examples with console.write. That's not what I want. I want something that shows how to create an activity that exposes properties and methods. I just c...

Workflow Foundation - Unable to access WCF service

Hello, I'm trying to create a Workflow that need to access a few WCF services. Everytime that I try to add a specific WF In receive de following error : Error 1 Unable to resolve the type 'http://schemas.microsoft.com/netfx/2009/xaml/activities:OutArgument(Dictionary)' referenced by Property 'GetParameterSetResult'. Ensure that the ...

Exclude from project, source control issue

Hi, I'm using team foundation server 2010 @ work and home. I want to exclude some element from the project build but still have them exist in Team Foundation Server 2010 source control. How do I achieve this? Exclude From Project will delete the item. thanks ...

bundle a file with a command-line utility

can i bundle a file with a command-line Utility in OS X? i use Foundation framework, and hope there is a way to drag some files to project and then use them in code, like in Cocoa ...

Workflow Foundation - WCF / Custom entities can't be passed between services

Hello, I've created a workflow which transmits data from one service to another. The problem is that the Entities aren't recognized. Service A : Content provider, contains a custom entity declaration Service B : Transform list of entities declared in A in a new form of entities So in a schematic view : WF -> A -> Entity WF -> B -> A (...

Application behaves differently when output is redirected to an NSPipe object?

I have an application which works with sockets and reads / writes data. It uses Foundation framework combined with CFNetwork and stdio. Here is the issue - when it is launched from console (bash shell) it works 100% fine and there is nothing wrong with. However when it is invoked by another application via NSTask madness begins. The who...

NSFileManager fileExistsAtPath: & symbolic links

In my ~/Library/Caches/ directory, I have a symbolic link to my app's bundle, and some symbolic links to images (e.g. "big_picture.png" is a symlink to "small_picture.png"). When I try to check if the symlinks exist, using the NSFileManager's fileExistsAtPath: method, it returns NO, even when the symlink does exist, and it links to a fil...

xCode command-line > foundation problem

Hi, I'm trying to set up a command-line > foundation "hello world" project. (as written in the book 'learning objective C for mac') ...When I select 'build & run' with the default settings for this project I get 4 errors, without modifying any code!? errors: stdarg.h: no such file or directory float.h: no such file or directory xmmin...

"My Queries" are lost after TFS move to a new environment

Hello All, After moving TFS to a new environment and after restoring the backups, I can only find the predefined queries but can't find any custom query which should be located at "My Queries" any help? ...