Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread BareFeetWare
On 01/12/2010, at 5:02 PM, Donald Hall wrote:

> the root view controllers for each navigation controller are custom 
> UITableViewControllers.
> 
> What is the best way to set the style of the table views? I want at least one 
> of my table views to have a grouped style, but I can see no easy way of 
> specifying this.

The (UITableView*)tableView object in a UITableViewController is created when 
it's needed. So you won't see it in the default nib. The style of the tableView 
can only be set when it is created. If you want to customize the creation of 
the tableView, you can do it either of two ways:

1. Add you own UITableView object (with the group style, if you want it) in the 
UITableViewController's nib and hook it up to the UITableViewController's 
tableView outlet.

or:

2. Intercept the dynamic creation of the tableView in code, overriding the 
style of the created table. In the code of your subclass of 
UITableViewController, add this (or just uncomment and tweak it if it's already 
there from the template):

- (id)initWithStyle:(UITableViewStyle)style
{   // Override initWithStyle: if you create the controller 
programmatically and want to perform customization that is not appropriate for 
viewDidLoad.
self = [super initWithStyle:UITableViewStyleGrouped];
if (self != nil)
{
// any further customizations here
}
return self;
}


Here's the relevant documentation for the IUTableViewController class:

initWithStyle:
Initializes a table-view controller to manage a table view of a given style.

- (id)initWithStyle:(UITableViewStyle)style
Parameters
style
A constant that specifies the style of table view that the controller object is 
to manage (UITableViewStylePlain orUITableViewStyleGrouped).
Return Value
An initialized UITableViewController object or nil if the object couldn’t be 
created.
Discussion
If you use the standard init method to initialize a UITableViewController 
object, a table view in the plain style is created.

Hope this helps,
Tom
BareFeetWare
Coming soon: SQLite schema and data editor for 
iOS___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread Matt Neuburg

On Dec 2, 2010, at 11:33 AM, glenn andreas wrote:

> Actually, it does a number of things for you:

I didn't say it didn't do anything. I said it didn't do anything you couldn't 
easily do yourself.

> 1) It flashes the scroll bar correctly when the view appears

Which you can easily do by implementing viewDidAppear.

> 2) It can automatically deselect selected rows (in 3.2 and later)

Which you can easily do by implementing viewWillAppear.

> 3) Most importantly, it will handle dealing with keyboards showing up and 
> covering part of the table view (and adjust the scroll/content inset), which 
> can be a painful mess, especially trying to support both pre 3.2, and 3.2/4.x 
> (since not only are the keyboard notifications different, but it deals with 
> the view being presented in the variety of different ways - sheet, full 
> screen, etc...)

Which you... uh... okay, you've got me there! :)

Nevertheless, UITableViewController is in many ways just annoying. It doesn't 
obey the UIViewController rule, which it should inherit, about what happens 
when you init it with a nil nibName. And if your view is not completely 
occupied by a table (as in my TidBITS News app, where there's a UILabel and a 
table), you *can't* use UITableViewController. m.

--
matt neuburg, phd = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread glenn andreas

On Dec 2, 2010, at 11:47 AM, Matt Neuburg wrote:

> 
> On Dec 1, 2010, at 6:58 PM, Donald Hall wrote:
> 
>> I have come to the conclusion that what I wanted to do is not easily done 
>> unless the table view controller has its own nib file. In IB if you don't 
>> specify that the table view controller that is the root view controller of a 
>> navigation controller has its own nib file, there is no access to the actual 
>> table view in IB, so no way there to specify the table style. (The inspector 
>> window for a table view controller has no setting to specify the style.) 
>> Hitting the disclosure triangle for the custom table view controller in the 
>> main window nib file in that case only shows the Navigation Item - it 
>> doesn't show the table view. To access the controller's table view you have 
>> to have a separate nib file for the table view controller and tell the main 
>> window nib in the Attributes Inspector to load from this other nib.
> 
> This just isn't so. You say "Hitting the disclosure triangle for the custom 
> table view controller in the main window nib file in that case only shows the 
> Navigation Item - it doesn't show the table view." It doesn't show the table 
> view because you didn't put any table view there. If you drag a table view 
> into the table view controller, that becomes its view and now you can hook 
> everything up. This is in some ways not as convenient as putting the table 
> view in its own nib file, but you can certainly do it that way.
> 
> My own inclination, however, would be to go exactly the other way - no second 
> nib, no table view in any nib, and no UITableViewController in a nib either. 
> In fact, I probably wouldn't even use a UITableViewController at all. 
> UITableViewController doesn't get you anything much that you can't do in code 
> yourself.


Actually, it does a number of things for you:
1) It flashes the scroll bar correctly when the view appears
2) It can automatically deselect selected rows (in 3.2 and later)
3) Most importantly, it will handle dealing with keyboards showing up and 
covering part of the table view (and adjust the scroll/content inset), which 
can be a painful mess, especially trying to support both pre 3.2, and 3.2/4.x 
(since not only are the keyboard notifications different, but it deals with the 
view being presented in the variety of different ways - sheet, full screen, 
etc...)





Glenn Andreas  gandr...@gandreas.com 
The most merciful thing in the world ... is the inability of the human mind to 
correlate all its contents - HPL

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread Matt Neuburg

On Dec 1, 2010, at 6:58 PM, Donald Hall wrote:

> I have come to the conclusion that what I wanted to do is not easily done 
> unless the table view controller has its own nib file. In IB if you don't 
> specify that the table view controller that is the root view controller of a 
> navigation controller has its own nib file, there is no access to the actual 
> table view in IB, so no way there to specify the table style. (The inspector 
> window for a table view controller has no setting to specify the style.) 
> Hitting the disclosure triangle for the custom table view controller in the 
> main window nib file in that case only shows the Navigation Item - it doesn't 
> show the table view. To access the controller's table view you have to have a 
> separate nib file for the table view controller and tell the main window nib 
> in the Attributes Inspector to load from this other nib.

This just isn't so. You say "Hitting the disclosure triangle for the custom 
table view controller in the main window nib file in that case only shows the 
Navigation Item - it doesn't show the table view." It doesn't show the table 
view because you didn't put any table view there. If you drag a table view into 
the table view controller, that becomes its view and now you can hook 
everything up. This is in some ways not as convenient as putting the table view 
in its own nib file, but you can certainly do it that way.

My own inclination, however, would be to go exactly the other way - no second 
nib, no table view in any nib, and no UITableViewController in a nib either. In 
fact, I probably wouldn't even use a UITableViewController at all. 
UITableViewController doesn't get you anything much that you can't do in code 
yourself. Personally I'd just use my own UIViewController subclass, and create 
the table view in code. And in that case I probably wouldn't instantiate the 
UIViewController subclass from a nib either; I'd do *that* in code as well. It 
seems to me that you're stumbling over your feet in part because you insist on 
doing everything in nibs. In my view, nib instantiation and configuration of 
view controllers just makes it harder to understand what's going on. m.

--
matt neuburg, phd = m...@tidbits.com, 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread Jack Carbaugh
The controller won't have a way to specify the style of the uitableview, but 
the actual instantiated uitableview in the XIB will however ... select the 
uitableview from the list view of the xib contents and you can select it's 
style in the inspector.

<>

On Dec 1, 2010, at 9:58 PM, Donald Hall wrote:

> Matt, Jack, and Roland,
> 
> Thanks for your replies.
> 
> I have come to the conclusion that what I wanted to do is not easily done 
> unless the table view controller has its own nib file. In IB if you don't 
> specify that the table view controller that is the root view controller of a 
> navigation controller has its own nib file, there is no access to the actual 
> table view in IB, so no way there to specify the table style. (The inspector 
> window for a table view controller has no setting to specify the style.) 
> Hitting the disclosure triangle for the custom table view controller in the 
> main window nib file in that case only shows the Navigation Item - it doesn't 
> show the table view. To access the controller's table view you have to have a 
> separate nib file for the table view controller and tell the main window nib 
> in the Attributes Inspector to load from this other nib.
> 
> After re-creating my class with its own nib file I now have it working.
> 
> I would say the table view not showing under the table view controller in the 
> main window nib file is a bug, but perhaps there is a reason for this that I 
> don't see.
> 
> Thanks again,
> 
> Don
> 
>> On Wed, 1 Dec 2010 00:02:00 -0600, Donald Hall  said:
>>> What is the best way to set the style of the table views? I want at
>>> least one of my table views to have a grouped style, but I can see no
>>> easy way of specifying this.
>> 
>> You don't see:
>> 
>> (1) table view's initWithFrame:style:
>> 
>> (2) table view controller's initWithStyle:
>> 
>> (3) the style pop-up menu in the nib
>> 
>> ??? m.
>> 
>> --
>> matt neuburg, phd = m...@tidbits.com, 
>> A fool + a tool + an autorelease pool = cool!
>> AppleScript: the Definitive Guide - Second Edition!
>> http://www.apeth.net/matt/default.html#applescriptthings
> 
> 
> -- 
> Donald S. Hall, Ph.D.
> Apps & More Software Design, Inc.
> d...@appsandmore.com
> http://www.appsandmore.com
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/intrntmn%40aol.com
> 
> This email sent to intrn...@aol.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-01 Thread Donald Hall

Matt, Jack, and Roland,

Thanks for your replies.

I have come to the conclusion that what I wanted to do is not easily 
done unless the table view controller has its own nib file. In IB if 
you don't specify that the table view controller that is the root 
view controller of a navigation controller has its own nib file, 
there is no access to the actual table view in IB, so no way there to 
specify the table style. (The inspector window for a table view 
controller has no setting to specify the style.) Hitting the 
disclosure triangle for the custom table view controller in the main 
window nib file in that case only shows the Navigation Item - it 
doesn't show the table view. To access the controller's table view 
you have to have a separate nib file for the table view controller 
and tell the main window nib in the Attributes Inspector to load from 
this other nib.


After re-creating my class with its own nib file I now have it working.

I would say the table view not showing under the table view 
controller in the main window nib file is a bug, but perhaps there is 
a reason for this that I don't see.


Thanks again,

Don


On Wed, 1 Dec 2010 00:02:00 -0600, Donald Hall  said:

What is the best way to set the style of the table views? I want at
least one of my table views to have a grouped style, but I can see no
easy way of specifying this.


You don't see:

(1) table view's initWithFrame:style:

(2) table view controller's initWithStyle:

(3) the style pop-up menu in the nib

??? m.

--
matt neuburg, phd = m...@tidbits.com, 
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings



--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
d...@appsandmore.com
http://www.appsandmore.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-01 Thread Matt Neuburg
On Wed, 1 Dec 2010 00:02:00 -0600, Donald Hall  said:
>What is the best way to set the style of the table views? I want at 
>least one of my table views to have a grouped style, but I can see no 
>easy way of specifying this.

You don't see:

(1) table view's initWithFrame:style:

(2) table view controller's initWithStyle:

(3) the style pop-up menu in the nib

??? m.

--
matt neuburg, phd = m...@tidbits.com, 
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-01 Thread Jack Carbaugh
You are correct ... my apologies ... you can set the table style in the XIB or 
when programmatically with the initWithFrame:style: 


initWithFrame:style:

On Dec 1, 2010, at 8:17 AM, Roland King wrote:

> That property is read only. 
> 
> On 01-Dec-2010, at 8:23 PM, Jack Carbaugh wrote:
> 
>> set the style property of the table view to  UITableViewStyleGrouped
>> 
>> controller.view.style = UITableViewStyleGrouped
>> 
>> http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableView_Class/Reference/Reference.html
>> 
>> On Dec 1, 2010, at 1:02 AM, Donald Hall wrote:
>> 
>>> Hi all,
>>> 
>>> I have a tab bar based iOS application. The controllers for each tab bar 
>>> item are UINavigationControllers, and the root view controllers for each 
>>> navigation controller are custom UITableViewControllers.
>>> 
>>> What is the best way to set the style of the table views? I want at least 
>>> one of my table views to have a grouped style, but I can see no easy way of 
>>> specifying this.
>>> 
>>> Here is what I have come up with so far. It seems rather convoluted.
>>> 
>>> 1. In my app delegate in "didFinishLaunchingWithOptions" create an instance 
>>> of the custom table view controller using "initWithStyle" and the Grouped 
>>> style.
>>> 
>>> 2. Create an instance of UINavigationController using 
>>> initWithRootViewController, specifying the controller created in step 1 as 
>>> the root view controller.
>>> 
>>> 3. Alter the viewControllers property of my UITabBarController (the root 
>>> controller of the app) to include the navigation controller created in step 
>>> 2.
>>> 
>>> Is there a simpler way that I am missing? I pored over the docs, but could 
>>> not find anything easier that the above.
>>> 
>>> Thanks in advance for any assistance.
>>> 
>>> Don
>>> -- 
>>> Donald S. Hall, Ph.D.
>>> Apps & More Software Design, Inc.
>>> d...@appsandmore.com
>>> http://www.appsandmore.com
>>> ___
>>> 
>>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>> 
>>> 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:
>>> http://lists.apple.com/mailman/options/cocoa-dev/intrntmn%40aol.com
>>> 
>>> This email sent to intrn...@aol.com
>> 
>> ___
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
>> 
>> This email sent to r...@rols.org
> 

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-01 Thread Roland King
That property is read only. 

On 01-Dec-2010, at 8:23 PM, Jack Carbaugh wrote:

> set the style property of the table view to  UITableViewStyleGrouped
> 
> controller.view.style = UITableViewStyleGrouped
> 
> http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableView_Class/Reference/Reference.html
> 
> On Dec 1, 2010, at 1:02 AM, Donald Hall wrote:
> 
>> Hi all,
>> 
>> I have a tab bar based iOS application. The controllers for each tab bar 
>> item are UINavigationControllers, and the root view controllers for each 
>> navigation controller are custom UITableViewControllers.
>> 
>> What is the best way to set the style of the table views? I want at least 
>> one of my table views to have a grouped style, but I can see no easy way of 
>> specifying this.
>> 
>> Here is what I have come up with so far. It seems rather convoluted.
>> 
>> 1. In my app delegate in "didFinishLaunchingWithOptions" create an instance 
>> of the custom table view controller using "initWithStyle" and the Grouped 
>> style.
>> 
>> 2. Create an instance of UINavigationController using 
>> initWithRootViewController, specifying the controller created in step 1 as 
>> the root view controller.
>> 
>> 3. Alter the viewControllers property of my UITabBarController (the root 
>> controller of the app) to include the navigation controller created in step 
>> 2.
>> 
>> Is there a simpler way that I am missing? I pored over the docs, but could 
>> not find anything easier that the above.
>> 
>> Thanks in advance for any assistance.
>> 
>> Don
>> -- 
>> Donald S. Hall, Ph.D.
>> Apps & More Software Design, Inc.
>> d...@appsandmore.com
>> http://www.appsandmore.com
>> ___
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/intrntmn%40aol.com
>> 
>> This email sent to intrn...@aol.com
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to r...@rols.org

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-01 Thread Jack Carbaugh
set the style property of the table view to  UITableViewStyleGrouped

controller.view.style = UITableViewStyleGrouped

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITableView_Class/Reference/Reference.html

On Dec 1, 2010, at 1:02 AM, Donald Hall wrote:

> Hi all,
> 
> I have a tab bar based iOS application. The controllers for each tab bar item 
> are UINavigationControllers, and the root view controllers for each 
> navigation controller are custom UITableViewControllers.
> 
> What is the best way to set the style of the table views? I want at least one 
> of my table views to have a grouped style, but I can see no easy way of 
> specifying this.
> 
> Here is what I have come up with so far. It seems rather convoluted.
> 
> 1. In my app delegate in "didFinishLaunchingWithOptions" create an instance 
> of the custom table view controller using "initWithStyle" and the Grouped 
> style.
> 
> 2. Create an instance of UINavigationController using 
> initWithRootViewController, specifying the controller created in step 1 as 
> the root view controller.
> 
> 3. Alter the viewControllers property of my UITabBarController (the root 
> controller of the app) to include the navigation controller created in step 2.
> 
> Is there a simpler way that I am missing? I pored over the docs, but could 
> not find anything easier that the above.
> 
> Thanks in advance for any assistance.
> 
> Don
> -- 
> Donald S. Hall, Ph.D.
> Apps & More Software Design, Inc.
> d...@appsandmore.com
> http://www.appsandmore.com
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/intrntmn%40aol.com
> 
> This email sent to intrn...@aol.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[iOS] setting table style for root view controller of a navigation controller

2010-11-30 Thread Donald Hall

Hi all,

I have a tab bar based iOS application. The controllers for each tab 
bar item are UINavigationControllers, and the root view controllers 
for each navigation controller are custom UITableViewControllers.


What is the best way to set the style of the table views? I want at 
least one of my table views to have a grouped style, but I can see no 
easy way of specifying this.


Here is what I have come up with so far. It seems rather convoluted.

1. In my app delegate in "didFinishLaunchingWithOptions" create an 
instance of the custom table view controller using "initWithStyle" 
and the Grouped style.


2. Create an instance of UINavigationController using 
initWithRootViewController, specifying the controller created in step 
1 as the root view controller.


3. Alter the viewControllers property of my UITabBarController (the 
root controller of the app) to include the navigation controller 
created in step 2.


Is there a simpler way that I am missing? I pored over the docs, but 
could not find anything easier that the above.


Thanks in advance for any assistance.

Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
d...@appsandmore.com
http://www.appsandmore.com
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com