int loadSynth(NSUrl presetUrl) { var dict = NSDictionary.FromUrl(presetUrl); var preset = new ClassInfoDictionary(dict); var error = samplerUnit.SetClassInfo(preset); return((int)error); }
void SetupTechniques() { // The scene can be de-saturarted as a full screen effect. NSUrl url = NSBundle.MainBundle.GetUrlForResource("art.scnassets/techniques/desaturation", "plist"); NSDictionary options = NSDictionary.FromUrl(url); desaturationTechnique = SCNTechnique.Create(options); desaturationTechnique.SetValueForKey(new NSNumber(0.0), (NSString)"Saturation"); }
public void loadPropertiesFileFromPList() { NSDictionary _booksDic = NSDictionary.FromUrl(fileURLOfCachedBooksFile()); //NSDictionary book = _booksDic; NSArray arrayOfBooks = _booksDic.ObjectForKey(new NSString("books")) as NSArray; if (arrayOfBooks.Count > 0) { this.createBooksFromDictionary(arrayOfBooks.GetItem <NSDictionary>(0)); } }