How to change the height of an NSProgressIndicator?

By default, cocoa progress bars are slightly fat and I want something a little slimmer, like the progress bars seen in the Finder copy dialog. However, Interface Builder locks the NSProgressIndicator control height to 20 pixels and my programmatic attempts to slim down aren't working, as calls to

[progressBar setControlSize:NSMiniControlSize];

and

[progressBar setControlSize:NSSmallControlSize];

in awakeFromNib don't do anything, and the suggestive looking NSProgressIndicatorThickness seen in the header file doesn't seem to plug into any methods that I can see.

What's the trick?

-------------Problems Reply------------

Those calls should have worked. In Interface Builder, in the Geometry pane (the one whose icon is a ruler), there is an equivalent control size selector that offers "Regular" and "Small" sizes.

Category:cocoa Views:1 Time:2008-10-08
Tags: cocoa

Related post

  • What causes a white border to be applied to an NSProgressIndicator displayed in the system menu? 2010-04-26

    This is what happens when I create an NSProgressIndicator and use NSStatusItem's -setView: method to display it in the menubar area while I'm performing an action: What causes this border to be displayed, and how can I remove it? The intended result

  • Add a NsProgressIndicator to a special row in NstableView 2011-06-23

    I'm very confused because multi NsProgressIndicators in NstableView don't work correctly,The addSubview method always add the progress cell to the last row in the tableview,not exactly the row index i want,here is some simple code: The NsTableView Da

  • Setting a div's height in HTML with CSS 2008-08-07

    I am a CSS newbie trying to layout a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background color. The content in the right side is almost always going to be s

  • IE8 overflow:auto with max-height 2008-08-11

    I have an element which may contain very big amounts of data, but I don't want it to ruin the page layout, so I set max-height: 100px and overflow:auto, hoping for scrollbars to appear when the content does not fit. It all works fine in Firefox and I

  • SPAN Height in Firefox 2008-08-24

    Using CSS, I'm trying to specify the height of a SPAN tag in Firefox, but it's just not accepting it (IE does, funnily enough). Firefox accepts the height if I use a DIV, but the problem with using a DIV is the annoying line break after it, which I c

  • 100% Min Height CSS layout 2008-08-24

    What's the best way to make an element of 100% minimum height across a wide range of browsers ? In particular if you have a layout with a header and footer of fixed height how do you make the middle content part fill 100% of the space in between with

  • Height of NSTextView with one line? 2008-08-25

    I want to programatically create an NSTextView. How can I determine the correct frame height so that the view displays one line of text in the current default font? --------------Solutions------------- The NSFont class has a method that can give you

  • Setting the height of a DIV dynamically 2008-08-28

    In a web application I'm working on, I have a page that contains a DIV that has an auto-width depending on the width of the browser window. However, I need to be able to have an auto-height for the object. The DIV starts about 300px from the top scre

  • On a two-column page, how can I grow the left div to the same height of the right div using CSS or Javascript? 2008-08-30

    I'm trying to make a two-column page using a div-based layout (no tables please!). Problem is, I can't grow the left div to match the height of the right one. My right div typically has a lot of content. Here's a paired down example of my template to

  • - How to show the whole height of referenced page? 2008-09-12

    I have an application that I would like to embed inside our companies CMS. The only way to do that (I am told), is to load it in an <iframe>. Easy: just set height and width to 100%! Except, it doesn't work. I did find out about setting framebo

  • How to vertically center content with variable height within a div? 2008-09-12

    What is the best way to vertically center the content of a div when the height of the content is variable. In my particular case, the height of the container div is fixed, but it would be great if there were a solution that would work in cases where

  • How to stretch an HTML table to 100% of the browser window height? 2008-09-18

    I'm using a table to design the layout of my web page. I want the table to fill the page even if it doesn't contain much content. Here's the CSS I'm using: html, body { height: 100%; margin: 0; padding: 0; } #container { min-height: 100%; width: 100%

  • Make a div fill the height of the remaining screen space 2008-09-18

    I am currently working on a web application, where I want the content to fill the height of the entire screen. The page has a header, which contains a logo, and account information. This could be an arbitrary height. I want the content div to fill th

  • Setting DataGridViewRow.Height slow 2008-09-18

    I have noticed that setting row height in DataGridView control is slow. Is there a way to make it faster? --------------Solutions------------- What's caused similar layout delays for myself was related to the AutoSizeRowsMode and AutoSizeColumnsMode

  • How do you limit height of a Sytem.Windows.Form to an exact value? 2008-09-18

    What I am trying to achieve is a form that has a button on it that causes the Form to 'drop-down' and become larger, displaying more information. My current attempt is this: private void btnExpand_Click(object sender, EventArgs e) { if (btnExpand.Tex

  • webpage template where content takes full height of viewport if has 1 line minus footer 2008-09-20

    I am looking for a css based web page template where the main content div takes full height of the view port (minus header and footer heights) when its content has few lines. Footer should be at the bottom of the view port (instead of right below con

  • Javascript - Get Image height 2008-09-20

    I have to display a bunch of images all of which may be of different dimensions on a webpage using AJAX.I want to adjust their size before displaying them. Is there any way to do this in Javascript. Using PHP's getimagesize() for each image is unnece

  • Getting Image height before the image loads in HTML 2008-09-20

    I have a table that is dynamically created using DIVs. Each row of the table has two images. I want to set the height for the div (that represents a particular row) to the height of image that is greater of the two images being displayed in that part

  • Variable height items in Win32 TreeView using NM_CUSTOMDRAW 2008-09-22

    Is it possible for items in a WIn32 TreeView control to have variable heights when using NM_CUSTOMDRAW? Right now, I can successfully select variable sized fonts in the dc in NM_CUSTOMDRAW, but the item texts get clipped. --------------Solutions-----

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.396 (s). 11 q(s)