On Dec 19, 2008, at 4:37 PM, Oleg Krupnov wrote:
I'm developing a custom view and noticed that drawRect is becoming
increasingly slow. The Shark has pointed out that the bottleneck is
the NSRectFill function (that calls CGContextFillRect under the hood)
that I use to draw the background of the
On Dec 16, 2008, at 4:02 PM, Gerriet M. Denkmann wrote:
I am trying to build a pressable button: an on-off button (subclass
of NSButton), which, if pressed for more than 0.3 seconds, displays
a context menu.
My idea was:
Start a non-repeating timer in mouseDown: and schedule it with
NSEv
On Dec 11, 2008, at 7:12 PM, Arun wrote:
The example i have in my mind is Finder, iTunes etc.
These have a blunt corned window.
There's an API in the AppKit (NSWindow) to have rounded or square
corners.
Is this what you're referring to?
___
Co
Formatter setMaximumFractionDigits:2];
Hopes it help
Stéphane
Le 8 déc. 08 à 20:53, Andy Bettis a écrit :
Hi,
In my app I have an NSTableView in the main window, within this
there's a column with an NSNumberFormatter attached. The formatter
is set to 10.4 behaviour and currency style.
On Dec 8, 2008, at 6:48 AM, Chris Markle wrote:
We have an installer for our current app that use Vise. We'd like to
switch maybe to PackageMaker and its artifacts. One thing that the
Vise-created install does is get installed to /Applications if you're
and admin and to ~/Applications if you're
I have a subclass of NSButtonCell that uses a customized version of:
- (void) drawImage:(NSImage*) inImage withFrame:(NSRect) inFrame
inView:(NSView*) inControlView;
for radio buttons.
The issue I have is when the window that contains the cell resigns
from being the key window:
- If the
On Oct 2, 2008, at 6:30 PM, Mark McCray wrote:
Hey there,Is there a way to figure out what username was used to log
on to a
mounted volume by knowing the volume name
Yes.
With statfs:
uid_t f_owner;/* user that mounted the file system */
you then just need to transform the uid to a
On Sep 30, 2008, at 2:20 PM, Nethan Aryan wrote:
Need Help...
I have written a helper tool in Cocoa, which other than it's main
task, performs a file permission change operation on the parent
application folder. This tool is invoked by the parent application
via a menu item. I don't want
On Sep 24, 2008, at 10:24 AM, René v Amerongen wrote:
[...]
1.)While svnserve is running, in my Subversion_SVNserve.log log I see.
svnserve: Root path '/Volumes/Development_Current/_CodeRepository'
does not exist or is not a directory.
svnserve: Root path '/Volumes/Development_Current/_CodeRe
On Sep 8, 2008, at 12:58 PM, Ellen Chou wrote:
I have a tree view window that uses NSTableView and NSOutlineView
lists out
all the sub folders under user's home directory. For some reason,
this
window shows the folder contents correctly in Mac OS 10.5.2, but not
in Mac
OS 10.4.x running o
On Sep 3, 2008, at 12:27 AM, Corbin Dunn wrote:
On Sep 2, 2008, at 1:59 PM, Stéphane Sudre wrote:
I have some code that works OK on Tiger but does not on Leopard.
I have a NSTableView with a column whose data cell is a
NSButtonCell subclass.
The NSButtonCell is set to be a checkbox
I have some code that works OK on Tiger but does not on Leopard.
I have a NSTableView with a column whose data cell is a NSButtonCell
subclass.
The NSButtonCell is set to be a checkbox/switchbox.
The subclass implements the following method:
- (BOOL) trackMouse:(NSEvent *)theEvent inRect:(N
In Apple Remote Desktop, when you are in observe mode, the cursor is
set to a white arrow. This is pretty nice to show that you can't
click somewhere you're usually able to.
As far as I can tell, this cursor is not set from a picture.
Is the white arrow cursor a system cursor not documented
On Aug 28, 2008, at 10:45 PM, Robert Claeson wrote:
On 28 Aug 2008, at 22:38, Wayne Shao wrote:
What is the correct way to quit a cocoa app? I could use C exit()
but that
would loose the chance to invoke the right callbacks for clean up.
What is the call that would be equivalent to user e
If you have a Window miniaturized in the Dock and you send it a
orderOut: message, the window is not removed from the Dock.
Is it a bug in Cocoa or is it the responsibility of the developer to
deminiaturize: the window - if needed - before calling orderOut:?
Easily reproducible in IB withou
Probably a stupid question but I don't see anything in the objc
headers or in some old slides corroborating this.
When you build a project for a 64-bit architecture (such as x86_64),
does this imply the Objective-C version for this architecture is going
to be 2.0?
___
On Jul 9, 2008, at 12:53 AM, Douglas Davidson wrote:
On Jul 8, 2008, at 3:44 PM, Stéphane Sudre wrote:
What I mean by incorrect value is that if I draw the string inside
a rectangle whose width is inMaxWidth and height is the value
obtained from the rect returned by
On Jul 6, 2008, at 11:26 PM, Jean-Daniel Dupas wrote:
Le 6 juil. 08 à 21:25, Stéphane Sudre a écrit :
Problem:
I would like/need to know the height that would be required to
render a string inside a fixed width box.
Solution that does not work:
So
On Jul 8, 2008, at 1:26 AM, Jean-Daniel Dupas wrote:
Le 7 juil. 08 à 23:54, Stéphane Sudre a écrit :
On Jul 6, 2008, at 11:26 PM, Jean-Daniel Dupas wrote:
Le 6 juil. 08 à 21:25, Stéphane Sudre a écrit :
Problem:
I would like/need to know the height that would be required to
Problem:
I would like/need to know the height that would be required to render
a string inside a fixed width box.
Solution that does not work:
So far, I've been using a solution found from a google search and
which looks like this:
- (float) heightOf
Test
___
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.ap
On Jun 26, 2008, at 12:38 AM, Stéphane Sudre wrote:
When reading a html document into a NSMutableAttributedString (or
NSTextStorage) using
- (BOOL)readFromURL:(NSURL *)url options:(NSDictionary *)options
documentAttributes:(NSDictionary **)dict,
what value are you supposed to set for
On Jun 26, 2008, at 10:30 AM, Manfred Schwind wrote:
I'm beginning to wonder if it's possible to save and restore the
current disclosure state of the hierarchy of a NSOutlineView.
I solved this a while ago. Here is what I am doing:
I am saving in my model if an item is expanded or collapse
I'm beginning to wonder if it's possible to save and restore the
current disclosure state of the hierarchy of a NSOutlineView.
- Iterating the hierarchy does not save the state of hidden children.
- the persistentObject API is not useful in my case as I have
multiple instances of the same NS
When reading a html document into a NSMutableAttributedString (or
NSTextStorage) using
- (BOOL)readFromURL:(NSURL *)url options:(NSDictionary *)options
documentAttributes:(NSDictionary **)dict,
what value are you supposed to set for NSBaseURLDocumentOption?
When I test this with HTML files
On Jun 25, 2008, at 10:59 PM, Ryan Harter wrote:
That sounds like exactly what I would like to do, but I'm not quite
sure how to copy the plist into the package. I was looking at
using pax, but since I'm targeting Leopard, and developing on
Leopard, package maker keeps making metapackage
On Sun, Jun 1, 2008 at 6:31 PM, Brian Christensen <[EMAIL PROTECTED]> wrote:
>
> I would consider that to be expected behavior. If you aren't ever releasing
> the layers you created, why would any of the relevant memory be freed? The
> timer and the animations it is causing to be performed should
On Sun, Jun 1, 2008 at 3:18 PM, Jonathan del Strother <
[EMAIL PROTECTED]> wrote:
>
>
> If you kill the timer after its been running for a while, does the
> memory usage drop back down? Maybe the implicit animations are never
> completing before a new one gets added, so they're just stacking up o
On Sun, Jun 1, 2008 at 1:40 PM, Brian Christensen <[EMAIL PROTECTED]> wrote:
>
> Even with this new code I'm still not observing any leaking. Are you using
> garbage collection? With GC enabled you will observe fluctuations until the
> collector gets a chance to free up unused memory, but even the
On Sun, Jun 1, 2008 at 1:15 PM, Gustavo Eulalio <[EMAIL PROTECTED]> wrote:
> Well, I'm novice to Cocoa/ObjC programming, so, I might be wrong. But
> I see you're setting a new frame on l2 every time fromTimer: is
> called, but you never release the old one. The following may solve it,
> if that's
On Sun, Jun 1, 2008 at 8:49 AM, Brian Christensen <[EMAIL PROTECTED]> wrote:
> On Jun 1, 2008, at 2:55 , Stéphane Droux wrote:
>
> When I run the program in Mallocdebug, it seems that one of the threads
>> used
>> by Core Animation to animate the layers doesn't re
On Sat, May 31, 2008 at 11:14 PM, Brian Christensen <[EMAIL PROTECTED]>
wrote:
> On May 31, 2008, at 16:39, "Stéphane Droux" <[EMAIL PROTECTED]>
>
> > When I run the program in MallocDebug, the memory usage goes up every
> time the timer function is executed.
Hi,
I'm currently writing an app that creates a complex hierarchy of CALayers.
Everytime I animate one of the layers, I get a memory leak.
In order to investigate the issue, I created a simple Cocoa project in which
I only added a CustomView and the following code for this view :
@implementation
On May 16, 2008, at 3:58 PM, [EMAIL PROTECTED] wrote:
Hello List
I have been using NSTableView -setCornerView: to provide additional
drag thumb image views for tables embedded in splitviews.
Has anyone found it possible to do the same thing in the bottom
right hand corner of a table as o
On May 14, 2008, at 3:48 PM, Yann Disser wrote:
When I launch my Cocoa application from Finder instead of from
within XCode, it reports a crash. All my other Projects seem to
work well from outside XCode...
I tried to debug my App by changing the main-function to
int main(int argc, char *
On May 9, 2008, at 10:34 PM, Western Botanicals wrote:
[...]
PS: I didn't look in detail at all your classes, but I did notice
that the UUID methods in BusinessObject have leaks.
That is wierd, because Xcode hasn't given me any warnings.
There's no reason for Xcode to do this. You would
On May 6, 2008, at 6:16 PM, Kristopher Matthews wrote:
(I apologize in advance if this question is not appropriate for
this list.)
I'm writing a small app to graph the speed of an attached hard disk
under various circumstances. My thoughts for the interface are at
http://homepage.mac.com
On May 5, 2008, at 11:02 PM, Michael Gardner wrote:
I'm trying to implement drag & drop in an NSView subclass. I made
sure that the source returns NSDragOperationMove in -
draggingSourceOperationMaskForLocal:, and that the destination
calls -registerForDraggedTypes: with the same (custom) ty
On May 1, 2008, at 7:39 PM, Randall Meadows wrote:
I am creating a bunch of controls (at least NSTextfield,
NSPopupButton, NSSlider, and perhaps others) programmatically (that
will eventually be shown in an NSTableView), and would like to
apply the "Size To Fit" feature that IB provides. H
On May 1, 2008, at 4:51 PM, Luong Dang wrote:
Hi all,
I'm having a problem with NSTextView: I programmatically insert an
image attachment into an NSTextView. However, when I delete the
text from my GUI the image didn't go away, even though from the
code, I can see that NSAttachmentCharact
On Apr 11, 2008, at 1:15 PM, Martin Redington wrote:
I have two NSTableViews, whose items have a parent-child relationship.
I would like to be able to drag the children into the parent table
view, to change their parent (think dragging mail messages between
folders).
The standard draggi
On Apr 10, 2008, at 8:00 PM, Don Arnel wrote:
Hey all...
This is my first time posting to this list. I've been a Windows
developer for many many years and have just recently started to
play around with Macs. I feel like a beginner all over again!
Anyway
I've got a Cocoa application
Am Mar 18, 2008 um 4:14 PM schrieb Valentin Dan:
Hi,
I have a NSTableView for witch I implemented a custom DataSource
class.
When I create & set the dataSource for the first time, the
NSTableView lists correctly the information; but when I change the
data in the DataSource object t
On Mar 14, 2008, at 5:16 PM, Hans van der Meer wrote:
I thought to implement an open panel on my main window and expected
it to wait for the dismissal of the sheet. It seems that actually
the events are out of the inendedorder. What is wrong with the
following code? Why didn't it wait for
On Mar 10, 2008, at 11:27 PM, John Stiles wrote:
[[searchField cell] setControlSize:NSSmallControlSize];
// A solution as ugly as an Orc
float tWidth;
NSRect tFrame;
tWidth =NSWidth([IBsearchField_ frame]);
[IBsearchField_ setFont:[NSFont systemFontOfSize:[NSFont
On Mar 9, 2008, at 2:28 PM, Nick Rogers wrote:
Hi,
I have a icon file (.icns) with 10 icons in it and i want to create
an NSImage with only the 32x32 icon from this file.
Currently I'm doing:
NSImage *anIcon = [[NSImage alloc] initWithContentsOfFile:iconPath];
which results in a very big
On Mar 9, 2008, at 12:48 PM, Nick Rogers wrote:
Hi,
In my app I need to get the icon for my HDD.
For this I need to get the bundle with identifier
"com.apple.iokit.IOStorageFamily".
How can i get this bundle?
Since this kernel extension won't probably change its name and location:
myBundl
On Mar 8, 2008, at 10:38 PM, Jonathan Dann wrote:
However, there often are no developer release note updates for
software updates.
If there are bugfixes, why is this the case?
Because there's no bugfixes. It just happens that in certain OS
releases, "engineering is not able to reproduc
On Mar 4, 2008, at 6:51 PM, Thomas Bartelmess wrote:
Hello everyone.
I would like to add an Kiosk mode to my Application.
Does somebody know how I can lock the Computer for every kind of
Keyboard Inputs (Just not for one Compo to leave the Kisok)
Best would be if the mouse wouldn't be there
On Mar 4, 2008, at 3:35 PM, Nick Rogers wrote:
Hi,
I have two NSTableView in my app (tableView1 and tableView2).
If I select a row in tableView1 and then if I select a row in
tableView2, I want the row in tableView1 to be deselected.
For this I'm using [tableView1 deselectAll: nil], but it le
On Mar 2, 2008, at 5:24 AM, Seth Willits wrote:
On Mar 1, 2008, at 6:01 PM, John Stiles wrote:
Unless Stephane plans on manually tracking the expanded items
himself, I don't see how this answers his original question
That's what you have to do. I use these notifications to save which
it
There seems to be a missing method in NSOutlineView.
You can know an item is expanded only if its parent is expanded (so
that the item itself is visible).
This is problematic if you want to cache the current list of expanded
items. Instead of just iterating through the item hierarchy when
52 matches
Mail list logo