Giter Club home page Giter Club logo

ios-extension-demo's People

Contributors

atomicbird avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-extension-demo's Issues

iOS-Extension-Demo in Swift

Hi,
Thanks for your sharing ^^
I have an ask about your last commit : "Add change notifications based on the Darwin notification center."
In DemoManager, there is this C function in an ObjC Class :

void sharedDataChangedCallback(CFNotificationCenterRef postingCenter,
                               void * observer,
                               CFStringRef name,
                               void const * object,
                               CFDictionaryRef userInfo)
{
    // Springboard from Darwin notification center to NSNotificationCenter.
    // Note that most of the received arguments are NULL with the Darwin notification center.
    [[NSNotificationCenter defaultCenter] postNotificationName:kDemoNotesSaveByAppNotification object:[DemoNoteManager sharedManager]];
}

In my Swift class, always this same C function :

func sharedDataChangedCallback(center: CFNotificationCenterRef,
                             observer: AnyObject,
                                 name: CFString,
                               object: AnyObject,
                             userInfo: CFDictionaryRef)
{   NSNotificationCenter.defaultCenter().postNotificationName(kDemoNotesSaveByAppNotification , object: CoreDataStore.sharedInstance)
}

When I call CFNotificationCenterAddObserver() in startObservingChangeNotifications() (in DemoManager) like that :

CFNotificationCenterAddObserver(center, nil, sharedDataChangedCallback, self.observingSaveNotificationName() as CFString!, nil, CFNotificationSuspensionBehavior.DeliverImmediately)

I have got this error : error

My method sharedDataChangedCallbackin Swift isn't correct but I don't know how to solve my issue. Could you help me about that ?

Morever, you have never called "stopObservingChangeNotifications()" in DemoManager. In MastViewController, I think this code misses :

-(void) deinit {
    DemoNoteManager *sharedManager = [DemoNoteManager sharedManager];
    [sharedManager stopObservingChangeNotifications];
}

iOS App Extension is not working in Chrome , but working in Safari

Hello , sir
I'm really struggle on working in google chrome browser.
It is working fine in safari browser.
But not working in chrome browser.
How can I do?
In Chrome Browser , JS file is not working.
Can you give me some advice?
Regards.
PS: I will pay for this work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.