Git Product home page Git Product logo

minya's People

Contributors

southpeak avatar sunbohong 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

minya's Issues

KVO的监听与移除

Hello! 最近在看您写的MVCS框架 ,KVO模块有个地方不太理解:
[info.observedObject removeObserver:info.observingObject forKeyPath:info.keyPath]; 既然已经移除了kvo 。那下面这段代码看着不是很懂:

        NSObject *otherObject = nil;
        if (info.observedObject != registeredObject) {
            otherObject = info.observedObject;
        } else if (info.observingObject != registeredObject) {
            otherObject = info.observingObject;
        }
        
        NSMutableArray *infosForOtherObject = [otherObject mi_associatedObjectForKey:kMIKVOInfoKey];
        [infosForOtherObject removeObject:info];

参数传递方向问题

`[[MIMediator sharedMediator] viewControllerWithScene:scene context:self.pipeline.contextForSearch];
[self.navigationController pushViewController:viewController animated:YES];

`
只是参数的向前传递 有没有back之后的向后传递方式,或者用一种全局性的参数传递方式呢,比如说通知。

例子运行不起来

pragma mark - KVO

  • (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context {

    __MIKVOInfo *info = (__bridge __MIKVOInfo *)(context);
    if (info.changed) {
    id newValue = [change valueForKey:NSKeyValueChangeNewKey];
    info.changed([newValue isKindOfClass:[NSNull class]] ? nil : newValue);
    }
    }

报错no type protocol name 'NSKeyValueChangeKey'
是我步骤有问题么
xcode 7.3.1

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.