我想我倾倒资产在生产我的S3存储桶,与capifony在Symfony的2我已经找到了一些解决方案部署后,但真的不找出最好的使用.
这是可能的转储Zend_Service_Amazon_S3的资产,但我认为这是一个有点矫枉过正导入Zend框架只为这一点.- http://permalink.gmane.org/gmane.comp.php.symfony.symfony2/54
我也发现了这个:https://github.com/symfony/symfony/pull/108,我可以告诉AsseticBundle存储桶名称,但我没有找到在哪里提供我的aws帐户的密钥和密码.
你能指出一个更好的解决方案,或者给我一些关于上述解决方案的详细信息.
我正在尝试为我的应用程序实现自定义URL方案.我为Info.plist添加了必要的行.在调用指定的url(例如:myapp://)后,应用程序启动.
如果我想处理URL,我发现了以下步骤:
@interface EventHandler : NSObject {
}
@end
@implementation EventHandler
- (id)init {
self = [super init];
if (self) {
NSLog(@"eventHandler::init");
NSNotificationCenter* defaultCenter = [NSNotificationCenter defaultCenter];
[defaultCenter addObserver:self
selector:@selector(applicationDidFinishLaunching:)
// name:NSApplicationWillFinishLaunchingNotification
name:NSApplicationDidFinishLaunchingNotification
object:nil];
}
return self;
}
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager];
[appleEventManager setEventHandler:self andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL];
}
- (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent
{
NSString* url = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
NSLog(@"%@", url);
}
@end
Run Code Online (Sandbox Code Playgroud)
如果应用程序正在运行,上面的代码正常工作,但如果调用URL并终止应用程序,则不会捕获该事件.我认为这是因为:NSApplicationDidFinishLaunchingNotification.将其更改为NSApplicationWillFinishLaunchingNotification会导致捕获到非事件.也许Qt在我之前处理它,但我找不到解决问题的方法.