Is there a BLIP framework available?

7 views
Skip to first unread message

zwaugh

unread,
Sep 10, 2009, 11:41:25 PM9/10/09
to BLIP Protocol
BLIP looks great, and like it will suit my needs perfectly, but is
there a packaged framework available? From looking at the instructions
on - http://bitbucket.org/snej/mynetwork/wiki/Setup - it looks like
it's a bit cumbersome to embed it in your own app. I was hoping there
might be a BLIP.framework available that contains all the files
necessary for BLIP that I can just download and drop into my project.

Thanks,
Zach

Gus Mueller

unread,
Sep 11, 2009, 1:09:03 PM9/11/09
to BLIP Protocol

It's pretty easy to do (I've done it for one my apps). And if you
don't know how to do it, then it's a good time to learn :)

It might be a little dated, but Jonathan Rentzsch put together a video
on how a couple of years ago:

http://rentzsch.com/cocoa/embeddedFrameworks

-gus

--

August 'Gus' Mueller
Flying Meat Inc.
http://flyingmeat.com/

Jens Alfke

unread,
Sep 11, 2009, 1:23:51 PM9/11/09
to zwaugh, BLIP Protocol

On Sep 10, 2009, at 8:41 PM, zwaugh wrote:

> I was hoping there might be a BLIP.framework available that contains
> all the files necessary for BLIP that I can just download and drop
> into my project.

I haven't done this, for a couple of reasons —

1. Laziness :/
2. Binaries go out of date every time a change is committed, and would
have to be rebuilt and uploaded (see #1)
3. Frameworks don't work on iPhone
4. I re-use utilities between my projects, and very bad things could
happen to apps that load multiple copies (like an app that uses both
MYNetwork and MYCrypto.) For example, each instance gets its own
global state, and if each framework has a different version of the
same class (or category methods on a class) it's a crap-shoot which
one will be loaded.

If you don't want to clutter up your own projects, you can check out
the MYNetwork and MYUtilities repos, set up the Xcode "source tree"
setting for MYUtilities, and then build a static-library target of
MYNetwork. Then you can add just that static library to your project.

—Jens

zwaugh

unread,
Sep 11, 2009, 1:57:49 PM9/11/09
to BLIP Protocol
Gus - I haven't built a framework before, but like you said, it's a
good time to learn. Thanks for the link.

Jens - I certainly understand your reasons, and see how a framework
wouldn't be make much sense in your case. I do think a lot of
developers would benefit from it though since they may want just
utilize BLIP as a standalone package. I'll work on creating a
framework out of it, and release it once I get it working. Is every
class in MYNetwork and MYUtilities required (besides the demo/test
files) for BLIP? Since this will be an embedded framework, I want to
make it as lightweight as possible.

Zach
Reply all
Reply to author
Forward
0 new messages