Re: NSTextView tab stop count

2016-10-15 Thread tridiak
> This works up to 12. Above that, it sticks to 12. > > Are you sure you're just not seeing them because the text in some columns is > longer than you tab width? > > I just made a simple example with this: > >NSMutableAttributedString *mas = [[NSMutableAttribute

Re: NSTextView tab stop count

2016-10-14 Thread Shane Stanley
On 15 Oct. 2016, at 12:43 am, tridiak wrote: > > This works up to 12. Above that, it sticks to 12. Are you sure you're just not seeing them because the text in some columns is longer than you tab width? I just made a simple example with this: NSMutableAttributed

Re: NSTextView tab stop count

2016-10-14 Thread Jens Alfke
r own tabbing for efficiency, since obviously the docs it works with include a bazillion tab stops. Text Wrangler doesn’t use Cocoa’s text system at all. It’s a variant of BBEdit, which has been around since the early ‘90s so it must have its own text engine. I’m surprised that there would be s

NSTextView tab stop count

2016-10-14 Thread tridiak
Why can’t I use more than 12 tab stops in NSTextView (enclosed by a standard NSScrollView)? I can use less, but I need significantly more. Is it to do with the ruler? NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init]; NSMutableArray* ma=[NSMutableArray array]; for (int t=0

Tab bar and split view controllers together?

2016-04-10 Thread Alex Hall
Hello list, I've been gone for a while, partly because of some IB/VoiceOver bugs in some 7.x builds of Xcode. But I'm trying to get back into Apple development on the weekends as I have time. This weekend I was trying to set up a UI for a project I'm refactoring. I want to use a

Re: [NSWorkspace openURL:] - any way to avoid a new tab?

2016-04-09 Thread Jerry Krinock
> On 2016 Apr 07, at 08:14, Jens Alfke wrote: > > If you send an AppleEvent directly to Safari, there might be a param to > control tab behavior. Oh, you could probably do that with AppleScript. Something like set myTab to make new tab set URL of myTab to htt

Re: [NSWorkspace openURL:] - any way to avoid a new tab?

2016-04-07 Thread Jens Alfke
-openURL is pretty generic, working with any type of URL that there's an app registered for, so it doesn't have a notion of specific UIs like tabs. If you send an AppleEvent directly to Safari, there might be a param to control tab behavior. But that would annoy users who have a

[NSWorkspace openURL:] - any way to avoid a new tab?

2016-04-06 Thread Graham Cox
Hi all, My app uses [NSWorkspace openURL:] to display help pages in the user’s default browser. Each new request creates a new tab (at least in Safari). Is there a way to pass a hint that no new tab is created if there is an existing tab for the same domain? I looked at NSWorkspace’s launch

Visualize Range in Attributes Inspector Tab in Interface Builder

2016-03-28 Thread Sukhmeet Singh
Hello All, The documentation states that Range can be used as one of the types for "User Defined Runtime Attributes" in Interface Builder. I am trying to declare a variable of the type NSRange annotated with @IBInspectable. I am not able to visualize The User Defined variable in Attributes

Re: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?

2016-02-17 Thread Alex Zavatone
lid underline that visually >>> aligns the items works too (background image?) >>> >> >> >> Serach the documentation for NSUnderlinePatternDot >> >> —Graham > > Thanks, > > What I had wanted was to place the underline style in

SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?

2016-02-17 Thread David Hoerl
tab separated. I did find this past weekend that simply applying the style to the tab character (the style you mention) resulted in the effect I was hoping for. In hindsight I guess it seems quite rational now. Note that patterns also require the specification of a line style (single, double

Re: NSAttributedString: how to add an underline (dotted line) between tab stops?

2016-02-12 Thread Graham Cox
> On 13 Feb 2016, at 1:39 AM, David Hoerl wrote: > > Is there a mechanism to do this? Even a gray solid underline that visually > aligns the items works too (background image?) > Serach the documentation for NSUnderlinePatternDot —Graham ___ C

Re: NSAttributedString: how to add an underline (dotted line) between tab stops?

2016-02-12 Thread David Delmonte
string2]; [titleString appendAttributedString:string3]; [titleLabel setAttributedText: titleString]; want The equivalent for underscore is: NSUnderlineStyleAttributeName On Feb 12, 2016, at 9:39 AM, David Hoerl wrote: I want to build a table with a left identifier, then a tab sto

NSAttributedString: how to add an underline (dotted line) between tab stops?

2016-02-12 Thread David Hoerl
I want to build a table with a left identifier, then a tab stop (well actually a few), each having some text in it. What I'd dearly love to do is add a dotted line style underline that goes from the right position of the left most text then butts up to the tab stop to its right, up t

Re: Hiding tab bar causes web content in pushed view to slide down

2015-10-31 Thread David Duncan
controller. > On Oct 29, 2015, at 6:14 PM, Rick Mann wrote: > > I have a tab bar application with a nav controller in each of the tabs. > Clicking on an item in that pushes a new view controller with a WKWebView. > Actually there's a UIView specified in IB, and in -l

Hiding tab bar causes web content in pushed view to slide down

2015-10-29 Thread Rick Mann
I have a tab bar application with a nav controller in each of the tabs. Clicking on an item in that pushes a new view controller with a WKWebView. Actually there's a UIView specified in IB, and in -loadView I create the WKWebView and add it to the UIView, and then add constraints to make

Re: setting tab stops in swift

2015-08-29 Thread Jens Alfke
> On Aug 29, 2015, at 12:18 PM, Quincey Morris > wrote: > > The second init *is* in the 10.11 Obj-C header, right down the end in the > deprecations section. D’oh, you’re right. I see my mistake now — I had pressed Cmd-Shift-O, typed “inittype:loc”, and it showed a single -initWithType:locat

Re: setting tab stops in swift

2015-08-29 Thread Quincey Morris
On Aug 29, 2015, at 12:03 , Jens Alfke wrote: > > Nope, NSTextTab only has a single initializer — the -initWithTextAlignment > one. (I just looked at both the Mac and iOS headers to make sure.) You’re wrong about this. Both are in the class documentation, but the other one is marked as depreca

Re: setting tab stops in swift

2015-08-29 Thread Jens Alfke
> On Aug 29, 2015, at 11:36 AM, Boyd Collier wrote: > > Thanks very much for the suggestions. Re the possible error in my Obj-C > code: Apple's documentation for NSTextTab shows 2 ways to create an > NSTextTab; the first is initWithType:location: (which is what I used in my > Obj-C code)

Re: setting tab stops in swift

2015-08-29 Thread Quincey Morris
On Aug 29, 2015, at 11:36 , Boyd Collier wrote: > > In my swift code, I’ve tried just about every permutation I can think of to > get the type of tab or alignment that I want, but to no avail. It occurred > to me that perhaps swift 1.2, which is what I’m using, might not work;

Re: setting tab stops in swift

2015-08-29 Thread Boyd Collier
tions: Further down in the docs, there is a table showing the correspondence between alignments and tab stop types. In my swift code, I’ve tried just about every permutation I can think of to get the type of tab or alignment that I want, but to no avail. It occurred to me that perhaps swif

Re: setting tab stops in swift

2015-08-27 Thread Marc Khadpe
hat you want. > On Aug 27, 2015, at 8:32 PM, Boyd Collier wrote: > > I’m in the process of re-writing some obj-c code in swift for OS X and am > stumped on how to set tab stops. The relevant obj-c code looks like this: > > [paraStyle setTabStops:[NSArray arra

Re: setting tab stops in swift

2015-08-27 Thread Jens Alfke
o with enums being quite different in swift. > Surely, the correct way to deal with this is relatively simple, but I’ve not > yet come up with it. Any help would be greatly appreciated. Command-click on ’NSTextTab’ to see the Swift definition. The first parameter to init isn’t a tab stop type, it’

setting tab stops in swift

2015-08-27 Thread Boyd Collier
I’m in the process of re-writing some obj-c code in swift for OS X and am stumped on how to set tab stops. The relevant obj-c code looks like this: [paraStyle setTabStops:[NSArray array]]; for (cnt = 1; cnt <= numStops; cnt++) { tabStop = [[NSText

Re: NSComboBox in the tab ring

2014-10-29 Thread Luther Baker
Yep - I ended up going with a Pop Up Button for the reason's you've both mentioned. Thanks for replying with a bit of explanation and suggestions! -Luther On Wed, Oct 29, 2014 at 3:16 PM, Graham Cox wrote: > > On 19 Oct 2014, at 3:14 pm, Luther Baker wrote: > > > I don't want to allow the use

Re: NSComboBox in the tab ring

2014-10-29 Thread Graham Cox
On 19 Oct 2014, at 3:14 pm, Luther Baker wrote: > I don't want to allow the user to type randomly into the text > field It *is* a text field. Sounds like what you really want is a pop-up menu button. --Graham ___ Cocoa-dev mailing list (Cocoa-de

Re: NSComboBox in the tab ring

2014-10-29 Thread Fritz Anderson
On 18 Oct 2014, at 11:14 PM, Luther Baker wrote: > > Is it possible to keep an NSComboBox in the tabbing ring if I set its > "Behavior" to "Selectable". Tabbing reaches the control if the textfield is > editable but I don't want to allow the user to type randomly into the text > field ... but unf

NSComboBox in the tab ring

2014-10-18 Thread Luther Baker
Is it possible to keep an NSComboBox in the tabbing ring if I set its "Behavior" to "Selectable". Tabbing reaches the control if the textfield is editable but I don't want to allow the user to type randomly into the text field ... but unfortunately, once I remove its editability, the tabbing cycle

Re: IOS force hidden tab to adjust subviews after rotation

2013-08-01 Thread Kyle Sluder
On Aug 1, 2013, at 10:23 AM, Trygve Inda wrote: >> On Thu, Aug 1, 2013, at 08:48 AM, Trygve Inda wrote: >>> In my iOS app with two tabs, after the device is rotated, is there a way >>> to >>> force the hidden tab to re-layout its subviews BEFORE clicking th

Re: IOS force hidden tab to adjust subviews after rotation

2013-08-01 Thread Trygve Inda
> On Thu, Aug 1, 2013, at 08:48 AM, Trygve Inda wrote: >> In my iOS app with two tabs, after the device is rotated, is there a way >> to >> force the hidden tab to re-layout its subviews BEFORE clicking that tab >> to >> make it visible? >> >> One of

Re: IOS force hidden tab to adjust subviews after rotation

2013-08-01 Thread Kyle Sluder
On Thu, Aug 1, 2013, at 08:48 AM, Trygve Inda wrote: > In my iOS app with two tabs, after the device is rotated, is there a way > to > force the hidden tab to re-layout its subviews BEFORE clicking that tab > to > make it visible? > > One of my tabs uses an image from another

IOS force hidden tab to adjust subviews after rotation

2013-08-01 Thread Trygve Inda
In my iOS app with two tabs, after the device is rotated, is there a way to force the hidden tab to re-layout its subviews BEFORE clicking that tab to make it visible? One of my tabs uses an image from another tab and I need it to adjust its frame rect. Thanks

LayoutSubviews after orientation change in inactive tab

2013-07-30 Thread Trygve Inda
I have a tabbed iOS app. Tab #2 has a background that is obtained from an auto-resizing scrollView in Tab #1. If I am viewing Tab #2, and rotate the device, I need the layout for Tab #1 to reconfigure its views immediately rather than until I select it again. How can I do this? I have added a

"tab view item - objects" Binding

2013-06-17 Thread Keary Suska
I have recently noticed that when I have a xib with an NSTabView, an option in the bind-to-controller shows up named "tab view item - objects". Does anyone know what this is? I can't find anything at all about it... Keary Suska Esoteritech, Inc. "Demystifying technol

Observing changes user did in Print&Scan tab in System Preferences.

2013-02-15 Thread Dmitriy Balakirev
Hi all, How can i observe changes( like renaming printer, set another default printer, delete printer, add printer) user did in Print&Scan tab in System Preferences? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Navigating in a NSTableView with tab key

2012-08-10 Thread Kyle Sluder
On Aug 8, 2012, at 11:09 PM, François Pelsser wrote: > Hello, > I want to be able to navigate in a table view with the tab key. So i > subclassed NSTableView and i added the overwrite the method > > > - (void) textDidEndEditing: (NSNotification *) notification Since NSTa

Navigating in a NSTableView with tab key

2012-08-09 Thread François Pelsser
Hello, I want to be able to navigate in a table view with the tab key. So i subclassed NSTableView and i added the overwrite the method - (void) textDidEndEditing: (NSNotification *) notification { CellLoc editedCell; editedCell.col = [super editedColumn]; editedCell.row

Re: makeFirstResponder: and tab views

2012-08-07 Thread Dave Fernandes
window, they just cannot be set to be first responder programatically at > all - it goes through the motions but it fails silently. > > The text field has a blue focus ring, but there is no blinking cursor and > typing results in a beep. The exact same code, without the tab view,

makeFirstResponder: and tab views

2012-08-05 Thread Graham Cox
programatically at all - it goes through the motions but it fails silently. The text field has a blue focus ring, but there is no blinking cursor and typing results in a beep. The exact same code, without the tab view, works fine. The field editor delegate causes the text field focus to shift every 4

Re: Tab Bar Item naming convention?

2012-07-09 Thread Sixten Otto
On Thu, Jul 5, 2012 at 10:31 PM, Laurent Daudelin wrote: > But, do I follow the same naming convention as for the app icon by adding a > "@2x" to the file name? Absolutely. That's a general convention for naming hidpi resources. https://developer.apple.com/library/ios/documentation/2DDrawing/Co

Re: Tab Bar Item naming convention?

2012-07-06 Thread Takeichi Kanzaki Cabrera
On Fri, Jul 6, 2012 at 7:31 AM, Laurent Daudelin wrote: > I've read all the documentation about the subject, did google everything I > could think of, but I still don't know how to name tab bar item icons. The > documentation recommends a standard icon of 20 x 20 and a high r

Tab Bar Item naming convention?

2012-07-05 Thread Laurent Daudelin
I've read all the documentation about the subject, did google everything I could think of, but I still don't know how to name tab bar item icons. The documentation recommends a standard icon of 20 x 20 and a high resolution one at 40 x 40. But, do I follow the same naming convention

Re: NSTextField Tab Order.

2012-06-13 Thread Dennis
On Jun 13, 2012, at 2:15 PM, Robert Tillyard wrote: > I'd still like to fix my window == NULL problem as I would like to make the > enter key move to the next field and skip fields if some earlier information > means that future fields are not required. Is there any chance you could be shadowin

Re: NSTextField Tab Order.

2012-06-13 Thread Ken Thomases
On Jun 13, 2012, at 4:50 PM, Quincey Morris wrote: > The other difficulty you're running into is that by design the window is not > created immediately when you create a window controller. (You say of your > code, above, that it creates a window from a XIB. It doesn't. It only creates > a windo

Re: NSTextField Tab Order. (Fixed)

2012-06-13 Thread Robert Tillyard
On 13 Jun 2012, at 22:50, Quincey Morris wrote: > On Jun 13, 2012, at 14:15 , Robert Tillyard wrote: > >> Window is created from a XIB using: >> >> - (id)initWithManagedObjectContext:(NSManagedObjectContext *)inMoc >> { >> if ((self = [super initWithWindowNibName:@"RunnersWindow" owner:self])

Re: NSTextField Tab Order.

2012-06-13 Thread Ken Thomases
Hi, On Jun 13, 2012, at 4:15 PM, Robert Tillyard wrote: > Thank you for your reply. You're welcome. > Window is created from a XIB using: > > - (id)initWithManagedObjectContext:(NSManagedObjectContext *)inMoc > { >if ((self = [super initWithWindowNibName:@"RunnersWindow" owner:self])) >

Re: NSTextField Tab Order.

2012-06-13 Thread Quincey Morris
On Jun 13, 2012, at 14:15 , Robert Tillyard wrote: > Window is created from a XIB using: > > - (id)initWithManagedObjectContext:(NSManagedObjectContext *)inMoc > { > if ((self = [super initWithWindowNibName:@"RunnersWindow" owner:self])) > [self setManagedObjectContext:inMoc]; > > retur

Re: NSTextField Tab Order.

2012-06-13 Thread Robert Tillyard
window does not have a key view loop already > established". I suspect that means if initialFirstResponder is not set. So, > I suspect that failing to set that means that the method will blow away your > configuration of nextKeyView connections. Okay, here I can see I screwed that up. I

Re: NSTextField Tab Order.

2012-06-13 Thread Ken Thomases
On Jun 13, 2012, at 3:40 AM, Robert Tillyard wrote: > mind you despite window being hooked up in IB window == NULL You need to figure this out first. It's indicative of a deeper problem. Are you referring to the window property of a custom subclass of NSWindowController? Is this window contro

NSTextField Tab Order.

2012-06-13 Thread Robert Tillyard
Hello, All, I have a window with a number of NSTextFields in two columns. The natural flow of information would be to fill in one column then the other but the tab order goes left to right then down. I've tried hooking up the nextKeyView in IB but that doesn't help. I've als

Re: Tab view and radio buttons

2012-02-23 Thread Fritz Anderson
On 22 Feb 2012, at 2:00 PM, McLaughlin, Michael P. wrote: > I am seeing a problem in which I select a radio button in a view, flip to > another tab then back again. When I do this for one of the tabbed views, the > just-selected radio button is not remembered. In fact, all of th

Tab view and radio buttons

2012-02-22 Thread McLaughlin, Michael P.
In Xcode 4.2 (Snow Leopard), I have a window with several tab views. Inside each tab view is a matrix of radio buttons with one preselected as default. I am seeing a problem in which I select a radio button in a view, flip to another tab then back again. When I do this for one of the tabbed

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-28 Thread Jens Alfke
On Jan 28, 2012, at 1:17 AM, Ron Hunsinger wrote: > After a single quote, the *only* character that has a special meaning is > another single quote, which ends the quotation. …or a newline :) [And yes, I have encountered filenames with newlines in them. It happened after I downloaded a PDF wi

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-28 Thread Ron Hunsinger
On Jan 26, 2012, at 11:30 AM, Jens Alfke wrote: > To work around this I suggest using single-quotes instead, and preprocessing > the string to insert a backslash in front of any exclamation point or > single-quote. I *think* that will be enough. After a single quote, the *only* character that

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Jean-Daniel Dupas
Le 26 janv. 2012 à 20:30, Jens Alfke a écrit : > > On Jan 26, 2012, at 10:22 AM, Andrew wrote: > >> NSString *cmd = [NSString stringWithFormat:@"cd \"%@\"; clear”, dir]; // >> Assumes bash, which is okay for me, but maybe not others. > > Watch out — that line has quoting problems. If the path

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Jens Alfke
On Jan 26, 2012, at 10:22 AM, Andrew wrote: > NSString *cmd = [NSString stringWithFormat:@"cd \"%@\"; clear”, dir]; // > Assumes bash, which is okay for me, but maybe not others. Watch out — that line has quoting problems. If the path to the directory contains double-quotes, dollar signs, bac

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Jens Alfke
On Jan 26, 2012, at 9:13 AM, Andrew wrote: > The only code I found via Google is all > using AppleScript to open the Terminal.app, but nothing I found was a Cocoa > interface besides 3rd party terminal apps (iTerm, iTerm2). Is there a > better way than using NSAppleScript to do this? Not that I’

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
de.google.com/p/cdto/source/browse/plugins/terminal/CD2Terminal.m?spec=svn20c4d028f197a6810230ddff969de81c4b23876d&r=20c4d028f197a6810230ddff969de81c4b23876d > > And got the terminal opening in a new window at the path. So I now need to > find how I can set the settings and have it

Re: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
and have it open a new tab instead of window. On Thu, Jan 26, 2012 at 10:13 AM, Andrew wrote: > I would like to perform the same logic as the "New Terminal Tab at Folder" > service in Finder in my Cocoa app. The only code I found via Google is all > using AppleScript to ope

Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?

2012-01-26 Thread Andrew
I would like to perform the same logic as the "New Terminal Tab at Folder" service in Finder in my Cocoa app. The only code I found via Google is all using AppleScript to open the Terminal.app, but nothing I found was a Cocoa interface besides 3rd party terminal apps (iTerm, iTerm2).

Is there any way to catch events "Browser tab has been closed"?

2011-11-26 Thread Nick
and build event hooking system). I am not very familiar with Mac OS's windowing system, though. Is there any kind of tool that would facilitate me with the task? Is it possible at all, to track tab closing events in common Web browsers (Safari, Chrome, Firefox)? If necessary, the application ma

Looking for Tab framework

2011-09-18 Thread Todd Freese
I am looking for recommendations for a open source framework to create small tabs. I have looked at PSMTabBarControl and Chromium Tabs. Just wondering if there are any others out there? Todd Freese The Filmworkers Club __ This

Re: Tab Bar iPad App With Table View

2011-06-19 Thread Conrad Shultz
as the main view. 2) Add a UINavigationController (this is what you see in iTunes, Mail, etc. - anywhere where there is the characteristic "back" button at the top left) to your app and drag it into the tab bar, causing a tab to get assigned to it that is managed by the UI

Re: Tab Bar iPad App With Table View

2011-06-19 Thread Conrad Shultz
akumar Kandappan wrote: > Hi > For the the kind of view which you were mentioning you should create a > standard or customised tableview controller and set the tabbar controllers > property.After setting this add the tabbar view to the view which will > show the tab bar. Once you c

Re: Tab Bar iPad App With Table View(Conrad Shultz)

2011-06-19 Thread Sivakumar Kandappan
Hi For the the kind of view which you were mentioning you should create a standard or customised tableview controller and set the tabbar controllers property.After setting this add the tabbar view to the view which will show the tab bar. Once you click the tab bar button. Tableview controller load

Re: Tab Bar iPad App With Table View (Please help, been trying all day)

2011-06-18 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/17/11 6:11 PM, Julie Seif wrote: > Hi, > > I want to create a Tab Bar based iPad App. I would like it so that you tap > on one of the tab bar buttons and a Table View comes up in the view area for > that button as a Navigation

Tab Bar iPad App With Table View (Please help, been trying all day)

2011-06-17 Thread Julie Seif
Hi, I want to create a Tab Bar based iPad App. I would like it so that you tap on one of the tab bar buttons and a Table View comes up in the view area for that button as a Navigation Menu, you would tap the table cell to get to whatever media/etc is attached to that cell in the table. (Imagine

Re: Tab Bar Application

2011-05-15 Thread Fritz Anderson
On 14 May 2011, at 8:48 PM, koko wrote: > Given a Tab Bar Application with n Tab Bar Items what is the recommended > pattern for the Views associated with each Tab Bar Item to communicate > between themselves? Views don't communicate with each other under the MVC pattern. Th

Tab Bar Application

2011-05-14 Thread koko
Given a Tab Bar Application with n Tab Bar Items what is the recommended pattern for the Views associated with each Tab Bar Item to communicate between themselves? koko "Don't fight the framework." --Kyle Sluder ___ Cocoa-dev mail

Re: Tab spacing in NSTextView

2011-04-28 Thread Kyle Sluder
2011/4/28 Дмитрий Николаев : > Hello! > > I'm trying override - boundingBoxForControlGlyphAtIndex for NSTypesetter, but > logs shows that this method never called. > > If this is most appropriate place to override position of the tab ? No. It will be *far* easier to

Tab spacing in NSTextView

2011-04-28 Thread Дмитрий Николаев
Hello! I'm trying override - boundingBoxForControlGlyphAtIndex for NSTypesetter, but logs shows that this method never called. If this is most appropriate place to override position of the tab ?___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Tab bar controller inside a navigation controller, how to adjust the view height

2011-01-31 Thread Matt Neuburg
;http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-navigation-controller-or-sharing-a-navigation-root-v > > >My app running well except for 1 problem. That is if the app receive the >memory warning message, and one of the view in the tabbar, say this tabbar >has 3 tab

Tab bar controller inside a navigation controller, how to adjust the view height

2011-01-31 Thread ico
I am trying to implement an app similar as "tweetie" applicatin, use UIViewController to implement a custom TabBarController that can be pushed in a navigation stack. This has been discussed before as shown here: http://stackoverflow.com/questions/576764/tab-bar-controller-inside-a-

Re: How to set tab order in a window that has view swapping

2011-01-25 Thread Marc Respass
ls in it. On Next and Back button click on my > Main window the current view is swapped with another view. On my first view > there is a NSPopupButton. I want when the first view is displayed the > keyboard focus should be on NSPopupButton and on tab key press it should move > to next

Re: How to set tab order in a window that has view swapping

2011-01-25 Thread Michael Babin
ns > one view with different controls in it. On Next and Back button click on my > Main window the current view is swapped with another view. On my first view > there is a NSPopupButton. I want when the first view is displayed the > keyboard focus should be on NSPopupButton and on ta

How to set tab order in a window that has view swapping

2011-01-24 Thread Abhijeet Singh
click on my Main window the current view is swapped with another view. On my first view there is a NSPopupButton. I want when the first view is displayed the keyboard focus should be on NSPopupButton and on tab key press it should move to next control in the tab order. Basically I want my user to be

Re: How can I "set tab stops" in a UITextView?

2010-12-19 Thread Kyle Sluder
On Sun, Dec 19, 2010 at 4:01 PM, Gordon Apple wrote: > Welcome to the lame world of UITextView.  No styles, no attributes. > Obviously, Apple, Inc. has something better, as shown in Pages, but they are > not sharing it with the rest of us.  Other than rolling your own with > CoreText (which I have

Re: How can I "set tab stops" in a UITextView?

2010-12-19 Thread Gordon Apple
ive I know of is Phitext , also based on CoreText, but it's not free. Hopefully, some future system upgrade will remedy this deficiency. On 12/19/10 2:01 PM, "cocoa-dev-requ...@lists.apple.com" wrote: > I would like to be able to control what is displayed in a UITextView when the

How can I "set tab stops" in a UITextView?

2010-12-18 Thread Jay Reynolds Freeman
I would like to be able to control what is displayed in a UITextView when the text contains a "tab" character. (I conjecture that if there is a mechanism to do that, it might be common to both UITextView and NSTextView, so if anyone knows anything about the latter, please speak

Re: What's the recommended way to have multiple views on one tab?

2010-12-09 Thread John Joyce
Hi Gavin, Here's the link. https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/Introduction/Introduction.html (you will need to sign in of course) I sent html mail instead of plan text my mistake. You should still be able to also swap controls. I

Re: What's the recommended way to have multiple views on one tab?

2010-12-09 Thread G S
On Thu, Dec 9, 2010 at 2:49 AM, John Joyce wrote: > Here you go Gavin: > Creating and Managing a View Hierarchy > This is in the View Programming Guide For iOS Thanks, John. Although that link didn't work, I did look at what seems to be the current equivalent area of the docs. One extra require

Re: What's the recommended way to have multiple views on one tab?

2010-12-09 Thread John Joyce
Here you go Gavin: Creating and Managing a View Hierarchy This is in the View Programming Guide 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

Re: What's the recommended way to have multiple views on one tab?

2010-12-09 Thread John Joyce
On Dec 9, 2010, at 7:28 PM, G S wrote: > Hi all. I find that I need to present different screens of > information under one tab, depending on whether the user is "logged > into" our app's service. If the user logs in (for which I can present > a modal view), the

What's the recommended way to have multiple views on one tab?

2010-12-09 Thread G S
Hi all. I find that I need to present different screens of information under one tab, depending on whether the user is "logged into" our app's service. If the user logs in (for which I can present a modal view), the entire display for the tab needs to change. What's the

Re: Load Tab View Items Lazily for Performance - How

2010-12-01 Thread Ken Thomases
On Dec 1, 2010, at 1:44 PM, Jerry Krinock wrote: > The document window in a Core Data app has now grown to the point where it > has several tabs and sub-tabs. Some of them, a "Reports" tab in particular, > can take a long time to load for large documents, so that

Load Tab View Items Lazily for Performance - How

2010-12-01 Thread Jerry Krinock
The document window in a Core Data app has now grown to the point where it has several tabs and sub-tabs. Some of them, a "Reports" tab in particular, can take a long time to load for large documents, so that upon opening such a document, the beachball spins while, mostly, array c

Re: Changing tabview tab order with IB 3.2.3

2010-08-28 Thread Nirias
IB? > > > > Just drag them left and right? > > That works, and for those occasions where a complex set of overlapping > views makes it hard to manipulate the views in the workspace, you can also > drag to reorder the tab view items in the document window i

Re: Changing tabview tab order with IB 3.2.3

2010-08-28 Thread Ken Thomases
makes it hard to manipulate the views in the workspace, you can also drag to reorder the tab view items in the document window in the list (outline) view mode. Cheers, Ken ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Changing tabview tab order with IB 3.2.3

2010-08-28 Thread Graham Cox
On 27/08/2010, at 10:01 PM, Nirias wrote: > Does anyone know how to re-order tabview tabs in the current IB? Just drag them left and right? --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Changing tabview tab order with IB 3.2.3

2010-08-27 Thread Nirias
In the old IB, at least at version 3.1.2, it was possible to re-order tabs in a tab view by clicking a tab and then using the left and right arrow keys move that tab in the order. But with IB 3.2.3, the arrow keys just change which tab is selected (eg the left arrow key will deselect the current

Re: setting tab stops in a document

2010-06-07 Thread Boyd Collier
Paul, You're quite right. I commented out the call to shouldChangeTextInRange: and my code still does what I want. Thanks for pointing this out. I'll have a look at the documentation on methods for bracketing multiple changes to the text (after I get my head around efficiently creating trian

Re: setting tab stops in a document

2010-06-07 Thread Paul Sanders
> /** ADDED CODE **/ > NSMutableDictionary* typingAttributes = [[myTextView typingAttributes] > mutableCopy]; > [typingAttributes setObject:paraStyle forKey:NSParagraphStyleAttributeName]; > [myTextView setTypingAttributes:typingAttributes]; > NSRange rangeOfChange = NSMakeRange(0, [[myTextView st

Re: setting tab stops in a document

2010-06-05 Thread Paul Sanders
> When my application opens a text file, the insertion point is blinking > immediately after the last character on the last line. If I then hit the tab > key, the insertion point moves over the correct distance. However, if I hit > the return key when the file is first opened, t

Re: setting tab stops in a document

2010-06-05 Thread Boyd Collier
w] 6-8-06 NSTextView *myTextView = [self textView]; // code to set tab stops, as suggested by PGM int cnt; int numStops = 200; int tabInterval = 80; NSTextTab *tabStop; NSMutableDictionary *attrs = [[NSMutableDictionary alloc] init]; //attr

Re: setting tab stops in a document

2010-06-05 Thread Ross Carter
On Jun 5, 2010, at 1:09 AM, Boyd Collier wrote: > In an application I'm working on, I read in plain text files containing data > to be analyzed. This uses a slightly-modified version of MyDocument.m that > is produced as a result of starting a project with the template for > NSDocument archite

setting tab stops in a document

2010-06-04 Thread Boyd Collier
alues being analyzed. Here's the code: - (void)updateView { DBOut(@"updateView was called from MyDocument"); [[self textView] setString:[self string]]; // code to set tab stops, as suggested by PGM int cnt; int numStop

Re: What is the best approach for custom tab bar interface?

2010-04-08 Thread Jack Carbaugh
Any control can tell the tab bar to switch the tabview ... or the tab bar itself... what was suggested was go tabless ... then have a button or any other control send a message to the tab bar to switch it's tab. Far easier to do this than to subclass the tab bar to display its

Re: What is the best approach for custom tab bar interface?

2010-04-08 Thread Philip Mobley
On Apr 8, 2010, at 8:22 AM, Gideon King wrote: > Absolutely. Use an NSTabView, but set it to be tabless, and create your own > control to change the selected tab. My question isn't how to get the Tabs to work, but the control which controls the tab switching. =) > I need to ha

Re: What is the best approach for custom tab bar interface?

2010-04-08 Thread Gideon King
Absolutely. Use an NSTabView, but set it to be tabless, and create your own control to change the selected tab. Regards Gideon On 09/04/2010, at 1:06 AM, Philip Mobley wrote: > I need to have a tab style interface, but am not able to use the built in > NSTabView because the style

What is the best approach for custom tab bar interface?

2010-04-08 Thread Philip Mobley
I need to have a tab style interface, but am not able to use the built in NSTabView because the style is not customizable. Basically I need something similar in look to the Safari tabs, but on a VERTICAL direction. At this point I am thinking about a custom NSView with CALayers for each tab

  1   2   3   >