AlexDenisov / FrameAccessor

Easy access to view's frame.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Podspec isn't compatible with OSX

holgersindbaek opened this issue · comments

I don't know if you are controlling the podspec as well on cocoapods, but would be great if you could make it compatible with OSX as well!

@holgersindbaek, the problem is that this category supports iOS only.
Feel free to send PR, if you need this functionality.
I can implement this by myself, but bit later.
Thank you.

@AlexDenisov What's PR? I would love this functionality and have already forked the library and made it into a OSX library, but would be great to have both functionalities on in same library.

The only thing that I can't really figure out is how I should name the files (NSView vs. UIView). Would it be possible to just call them FrameAccessor.h/m?

PR -> Pull Request, if I realize your question.

You can sent me pull request with category on NSView and UIView, and add FrameAccessor.h, which would contains

#if (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE)
    #import "UIVIew..."
#else
    #import "NSView..."
#endif

And I'll update podspec ASAP ;-)

Sounds awesome… already doing it. Why don't you have a public pod spec btw? Then you can also pull form the git branch.

Holger Sindbaek
Holgersindbaek.com (http://Holgersindbaek.com)

Co-founder
Uninkd.com (http://Uninkd.com)
Meer.li (http://Meer.li)

On Sunday, March 31, 2013 at 12:03 PM, Alexey Denisov wrote:

PR -> Pull Request, if I realize your question.
You can sent me pull request with category on NSView and UIView, and add FrameAccessor.h, which would contains
#if (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE) #import "UIVIew..." #else #import "NSView..." #endif

And I'll update podspec ASAP ;-)


Reply to this email directly or view it on GitHub (#2 (comment)).

Why don't you have a public pod spec btw?

I don't know 😄

Hehe. I've just submitted the PR. It's my first PR, so let me know if there's something I could do better.

I love FrameAccessor. Such an easy way to make coding life a little simpler.

@AlexDenisov Do you have any other tools that makes your life simpler?

Do you have any other tools that makes your life simpler?

I have two my libs. They're useful at least for me.
Anyway, GitHub have a lot of useful things :)