Search in sources :

Example 6 with NSMutableArray

use of ch.cyberduck.binding.foundation.NSMutableArray in project cyberduck by iterate-ch.

the class PlistSerializer method setListForKey.

@Override
public <T extends Serializable> void setListForKey(final Collection<T> value, final String key) {
    final NSMutableArray list = NSMutableArray.array();
    for (Serializable serializable : value) {
        list.addObject(serializable.<NSDictionary>serialize(new PlistSerializer()));
    }
    dict.setObjectForKey(list, key);
}
Also used : Serializable(ch.cyberduck.core.Serializable) NSMutableArray(ch.cyberduck.binding.foundation.NSMutableArray)

Aggregations

NSMutableArray (ch.cyberduck.binding.foundation.NSMutableArray)6 AccessDeniedException (ch.cyberduck.core.exception.AccessDeniedException)2 CertificateException (java.security.cert.CertificateException)2 X509Certificate (java.security.cert.X509Certificate)2 NSUInteger (org.rococoa.cocoa.foundation.NSUInteger)2 Action (ch.cyberduck.binding.Action)1 Local (ch.cyberduck.core.Local)1 Path (ch.cyberduck.core.Path)1 Serializable (ch.cyberduck.core.Serializable)1 SFCertificatePanel (ch.cyberduck.core.keychain.SFCertificatePanel)1 SecCertificateRef (ch.cyberduck.core.keychain.SecCertificateRef)1 DefaultLocalDirectoryFeature (ch.cyberduck.core.local.DefaultLocalDirectoryFeature)1 PathPasteboard (ch.cyberduck.core.pasteboard.PathPasteboard)1 TemporarySupportDirectoryFinder (ch.cyberduck.core.preferences.TemporarySupportDirectoryFinder)1 DEREncoder (ch.cyberduck.core.ssl.DEREncoder)1 BackgroundAction (ch.cyberduck.core.threading.BackgroundAction)1 BrowserTransferBackgroundAction (ch.cyberduck.core.threading.BrowserTransferBackgroundAction)1 DefaultMainAction (ch.cyberduck.core.threading.DefaultMainAction)1 DisconnectBackgroundAction (ch.cyberduck.core.threading.DisconnectBackgroundAction)1 WindowMainAction (ch.cyberduck.core.threading.WindowMainAction)1