Code Monkey home page Code Monkey logo

cocoa-helpers's People

Contributors

devindoty avatar shnhrrsn 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocoa-helpers's Issues

Inefficient [NSDictionary containsObjectForKey:] method

Searching the allKeys array will have linear performance degradation with the size of the dictionary since it has to check each item in the array sequentially - checking if [dictionary objectForKey:key] == nil has constant time performance regardless of array size and would be a much better implementation.

'ctx' undeclared (first use in this function)

./UIImage/UIImageHelper.m:103: error: 'ctx' undeclared (first use in this function)

After updating to the current revision, I got that error while compiling. I can't find the declaration of ctx in the project either. So perhaps this wasn't intended and should probably fixed.

3 dots against a ligature

There're a couple of occurrences where you use something like LocalizedString(@"foo...") which uses three dots. Since we're able to use UTF8 everywhere, it's better IMHO to use a ligature for that like … ( it's shortcut is Alt+; on the US layout).

It's a more cosmetic issue but, I think it looks slightly better.

Fixed view width

There's an issue in UITableView/UITableViewHelper.m:36 with

UITableViewUpdatingView* view = [[UITableViewUpdatingView alloc] initWithFrame:CGRectMake((int)((self.frame.size.width-130.0f)/2), UPDATING_OFFSET_Y, 130.0f, 42.0f) title:title];

When you're not on an english system and the localized string is wider than »Updating...« (in german it's for example »Aktualisieren…«) the overlay view gets messed up. This because of the fixed width here of 130.0f.

LocalizedString function

I'm not an expert with using #define, but I had to import NSStringHelper into NSDateHelper in order to remove the warnings around finding the definition for LocalizedString.

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.