category

Why does the iPhone SDK use categories, rather than protocols, for some delegates?

My understanding is that protocols are like interfaces in other languages -- they declare expected methods -- while categories allow you to add new methods to existing types (perhaps even types you don't own.) Why, then, does the iPhone SDK sometimes use categories for declaring delegate types? Normally I would expect all delegates to b...

Related posts from the blogosphere - dynamic integration of Google Blogsearch RSS on wordpress category pages

OK, I'm looking for a method to put the three latest "news" from Google Blogsearch/Twitter search feeds into the bottom of category Pages. Maybe like this (assuming we're on the archive page for the "Sports" category): What others say about "Sport": Instapundit - Michael Jordan Comeback! Huffington post - Michael Jordan Comeback! Craz...

How to get the category title in a post in Wordpress?

Say I have a post called Hello World in Wordpress and I'm directly viewing this page, how would I go about finding the category of "Hello World" and displaying it? ...

Creating categories in a ListView?

How do I create categories in an arbitrary ListView like those in Preferences (PreferenceCategory)? I've found android.R.layout.preference_category that renders that grey TextView but don't see it mentioned anywhere from java code. ...

Drupal 6: Taxonomy splot up in managed fields?

So you have two taxonomies, namely: "Business Type" and "Location" This is assigned to a node called BUSINESS. In effect, when the user creates a BUSINESS node, her has to choose for example, location "New York" and type "Information Services". My problem is when: a) Capturing the taxonomy, and b) Displaying the taxonomy I want the two...

Handling the category / sub category display for an online shop front.

We are developing an online shopfront. It is expected to have any level of category / sub category hierarchy. Suppose the main category is "A". It has sub category as "B". "B" has a sub category as "C" and so on. Now as a seller I want to add my product into the last level. What can be the easiest way to handle this scenario from the u...

magento - Editing colour of category tabs

Anybody know where to find the css that will edit the colour of the text in the category tabs? Regards, Fiona ...

How do I get the parent category name in wordpress template? And can I query post by the parent category?

I tried getting help on the wordpress forums but no luck. Anyways, heres my question... Lets say i am creating 10 parent categories and 2 sub categories to each parent. My wordpress post belongs to one sub category of a particular parent category How do i get the parent category name ONLY? i don't want subcategories names? what wordpre...

What kind of thing is a fooBar.category file in iPhone OS?

I recently opened the package of an iPhone app because I was curious how all that stuff looks like when the app is built. There, I found something like fooBar.category. What's that? I don't think it's a "Category" in terms of Cocoa, isn't it? ...

Problems with simplepie reading the itunes:category tag

Hi to all, i'm having a bit of a complication reading the itunes:category tag. I'm using blip to host some files, i use simple pie to read the blip feed and then "creating" a valid feed for itunes podcast. My code works fine in some cases but in other it simply doen't work. Here is the part of my code that reads the itunes:category tag:...

What kind of category methods do you use to make Cocoa programming easier?

I use a collection of category methods for Cocoa's built in classes to make my life easier. I'll post some examples, but I really want to see what other coders have come up with. What kind of handy category methods are you using? Example #1: @implementation NSColor (MyCategories) + (NSColor *)colorWithCode:(long)code { return [NSCo...

Using Super in an Objective C Category?

I'd like to override a method in an Objective C class that I don't have the source to. I've looked into it, and it appears that Categories should allow me to do this, but I'd like to use the result of the old method in my new method, using super to get the old methods result. Whenever I try this though, my method gets called, but "supe...

How can I show NEW products per row from specific categories in Magento?

As the title suggests, I like to show new products called in from specific categories separated by rows in the home page. Row 1 -> New products from Category 1 Row 2 -> New products from Category 2 Row 3 -> New products from Category 3 ...etc In my Magento Admin CMS, under Home Page they will be called in as separate...

Wordpress : List posts in category on '.com/categoryname' and display post on '.com/categoryname/post-name'

I have a permalink structure of /%catergory%/%postname%/. When I go to blah.com/categoryname I want all posts in that specific category to be listed. When I go to blah.com/categoryname/post-name I want just the specific post to be displayed. I have made a category specific template (category-5.php) and have got as far as... // Display...

What would be the best plugin for a simple Category feature of a Rails Application?

Basically it will be used for categories of some articles. So the hierarchy probably only has about 5 levels max. and the hierarchy structure won't be changed frequently. Also it would be good if the plugin itself is easy to extend because I might need make categories associated with users. I am aware that there are some act_as_tree-li...

Query Parameter and Category Parameter?

Hi all, in the example URL below, what would the QP and CP be? http://vivisimo.com/vivisimo/cgi-bin/query-meta?radiobutton=site&v%3Aproject=vivi&query=enterprise+search&submit.x=0&submit.y=0&submit=Submit Would QP be "query" and CP be "site"? Or, would it be "vivi&query" and "site&v%3Aproject"? Thanks for any help!...

How do I call the original function from the overloaded function in a category?

In Objective-C, I have a category for a class: @interface UILabel(CustomInit) - (id)initWithCoder:(NSCoder *)coder; @end What I'm doing is writing a custom init function that does some extra stuff, and what I'd like to do, is in this custom init function, call the UILabel's base initWithCoder. Is this possible? How so? EDIT Thanks...

WordPress: How to display only posts that are in a certain category?

Hi, I'm pretty new to WordPress but have spent some 50 odd hours studying up on it, trying things out and such and have the feeling I got a pretty good handle on it now.. However the one thing I simply cannot get working is to have a page spit out a list of posts of a certain category. Here is my example: http://dev.jannisgundermann.c...

Defining categories for protocols in Objective-C?

In Objective-C, I can add methods to existing classes with a category, e.g. @interface NSString (MyCategory) - (BOOL) startsWith: (NSString*) prefix; @end Is it also possible to do this with protocols, i.e. if there was a NSString protocol, something like: @interface <NSString> (MyCategory) - (BOOL) startsWith: (NSString*) prefix; @e...

Magento inheriting category settings

Hi all, Is it somehow possible when i add a category in my magento store, it inherits the settings of the parent category? // Roland ...