• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SearchBar doesn't display at all
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SearchBar doesn't display at all


  • Subject: Re: SearchBar doesn't display at all
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 8 Dec 2010 09:27:31 -0800

On Dec 8, 2010, at 8:58 AM, Jonathan Schmidt wrote:

> The second NIB
> DOES have a search bar, but it doesn't display at runtime.

But we are agreed that this has nothing to do with the search display controller, right? That was just a red herring in your original email? In other words, what I'm trying to ascertain is that your question is really just this: You tap-tap to get the second view into the nav interface, and when it appears, it consists of a table view but no search bar.

If that is the question, then the reason is that that's how your view controller is set up. The fact that a search bar is somewhere floating around in a nib is irrelevant. What's important is what view the view controller controls. If the view controller's view is a table view, that is what you'll see. If the view controller's view is a view containing a search bar and a table view, that is what you'll see.

A common mistake, by the way, is this: Your view controller is a table view controller, and you misconfigure it so that it doesn't load any nib at all. You think you are loading a nib, but you aren't. The table view controller then by default creates its own table view. So the table view you end up seeing is not the table view in the nib. This has fooled many people (including me).

m.

--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: SearchBar doesn't display at all
      • From: Jonathan Schmidt <email@hidden>
References: 
 >Re: SearchBar doesn't display at all (From: Jonathan Schmidt <email@hidden>)

  • Prev by Date: Re: SearchBar doesn't display at all
  • Next by Date: Re: performSelectorOnMainThread fails second time through
  • Previous by thread: Re: SearchBar doesn't display at all
  • Next by thread: Re: SearchBar doesn't display at all
  • Index(es):
    • Date
    • Thread