Using stuff from Shiira to make Tominated Browser better

Discussion in 'Mac Programming' started by tominated, Dec 7, 2006.

  1. tominated macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #1
    I want to use some stuff from shiira like the tabbed browsing and bookmark thing. could anybody tell me what to do? i found the source code here.
    I will post the tominated browser source asap. could someone intergrate the tabbed browsing feature into it? Here is a pic of how i want it
    [​IMG]
    EDIT: here is the source for tominated browser
     
  2. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
  3. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #4
    Yes thanks ;)

    There's documentation on the PSMTabBarControl website. You can do it either through old-fashioned boilerplate code or through Cocoa Bindings. I'm afraid you may actually have to write some code....
     
  4. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #5
    do you happen to know how to get the webview and stuff working? if you do can you have a fiddle with the source of my xcode project? i have got no clue on how to do all this.

    BTW: I am getting a book on cocoa programming and objective-c for xmas
     
  5. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #6
    If you download the source code for it there's a demo app that shows how to use it. The corresponding palette download also has good instructions. Basically you link the PSMTabBarControl to a normal NSTabView. In your case each 'tab' of the NSTabView would hold an WebView.
     
  6. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #7
    that's the thing, i am such a n00b that i don't know how to get it to have a webView in each tab and i don't know how to get the buttons to only talk to the active webView.

    BTW: when i try to put the tab thing in my app and test it in IB when i try to close a tab it goes all funny.
     
  7. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #8
    well? can someone do it for me or tell me how to do it? if you do it for me, i will put your credentials in the about box
     
  8. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #9
    Personally I'd probably hook the buttons to a controller object, and have the controller check which tab was visible. There are other ways of doing it though.
     
  9. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #10
    ok, i might try that, but the new tab button wont do anything! GODDAMNIT!
    EDIT: I have just realised that trying to compile my project with the tabs/framework gives it errors. do you know any other tab system thingies?
     
  10. caveman_uk Guest

    caveman_uk

    Joined:
    Feb 17, 2003
    Location:
    Hitchin, Herts, UK
    #11
    Have you properly added the framework to the project and done the necessary includes?
     
  11. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #12
    i have properly added the framework, and it doesn't say you have to include anything
     
  12. jeremy.king macrumors 603

    jeremy.king

    Joined:
    Jul 23, 2002
    Location:
    Fuquay Varina, NC
    #13
    Tominated, I have to ask:

    If you have no idea what you are doing and haven't really displayed any effort to learn on your own (outside of posting here), whats the point? Also, why are you trying to write a browser when there are plenty already out there?

    I'd go as far as saying that you should be giving credit to the people here who are pretty much writing this for you. Or better yet, rename your browers to MRinated.

    Sorry for the bluntness, but you've been pretty active lately in the Programming forum and simply ask "How do I..." questions.

    Edit: I just realized that you are VERY young - but still make an effort to learn instead of relying on others.
     
  13. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #14
    ok, i will take that intoo consideration. I have to wait until xmas to get some cocoa programming books. When I get them, i will probably be posting a lot less in the programming forums
     
  14. mwpeters8182 macrumors 6502

    Joined:
    Apr 16, 2003
    Location:
    Boston, MA
    #15
    I definitely wouldn't stop posting, as talking to experienced programmers can definitely be helpful. However, more informed posts (which you'll be able to make) will be received much better. You'll get some good responses.
     
  15. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #16
    thanks for the tip. i'll try and find some getting started tutorials on the web to improve my understanding.
     
  16. bousozoku Moderator emeritus

    Joined:
    Jun 25, 2002
    Location:
    Gone but not forgotten.
    #17
    Have you notified Shiira's developer since you're talking about using part of his browser to make yours better? If you're directly using his source code, you'd better get permission first.
     
  17. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #18
    Shiira appears to be released under a BSD license. That means you can use the code for whatever you want without seeking the original developers permission first.

    It'd be good manners to and you should definitely give attribution in the About box for the app..
     
  18. mufflon macrumors 6502

    Joined:
    Sep 15, 2006
    #19
    and I for one would question the need to develop something this complex as your initial programming studies - you should really learn how to walk before you try to drive a car.
     
  19. bousozoku Moderator emeritus

    Joined:
    Jun 25, 2002
    Location:
    Gone but not forgotten.
    #20
    Who knows why the licence was chosen but I'd say that he'd be shocked to find that his hard work went into someone else's project.
     
  20. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #21
    yes i have.

    BTW: i have decided that the only thin i am going to 'borrow' from shiira is the downloads handling. Shiira is the only webkit browser that i know is open source.
     
  21. Catfish_Man macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR
    #22
    Uh, no. That's the entire point of the BSD license. It's certainly nice to let them know, but no "shock" is involved when you explicitly say "HEY EVERYONE USE MY CODE", which is basically what the BSD license is saying.


    unrelated:
    PSMTabBarControl is based on Shiira's tabs, btw. I wrote the style changing system and a few other things, and the student I mentored for Google SoC is responsible for a lot of the new nifty features in it. So once the OP gets a better handle on programming in general I may be able to answer some specific questions. :)
     
  22. cazlar macrumors 6502

    Joined:
    Oct 2, 2003
    Location:
    Sydney, Australia
    #23
    Until you get your book, I'd recommend the articles at MacDevCenter: http://www.macdevcenter.com/pub/ct/37

    The very early ones are now pretty old and may be slighty out-of-date in regards to referencing Project Builder rather than xcode, but they are a great way to get into cocoa programming, showing you step by step how to create an app from scratch, including adding stuff like prefs (again, maybe also out-of-date as it would be easier to use bindings for prefs these days).
     
  23. tominated thread starter macrumors 68000

    tominated

    Joined:
    Jul 7, 2006
    Location:
    Queensland, Australia
    #24
    tominated browser started out as the macdevcentre byob project
     
  24. Coheebuzz macrumors 6502

    Joined:
    Oct 10, 2005
    Location:
    Nicosia, Cyprus
    #25
    Hmm, i just downloaded this browser and even if it's based on webkit it scrolls MUCH faster and smoother than Safari! Try it out yourselves am not kidding!

    Keep it clean and simple Tominated, there is no such thing as too many browsers. ;)
     

Share This Page