On Jul 31, 2013, at 9:28 AM, Jerry Krinock wrote:
>
> On 2013 Jul 31, at 06:32, Stephane Sudre wrote:
>
>> Is it a known bug that the NSWorkspaceDidTerminateApplicationNotification
>> notification is not
>> sent for applications whose LSUIElement key is set to YES?
>
> The *behavior* is kno
Hi Steve,
On Apr 12, 2013, at 1:10 PM, Steve Mills wrote:
> If I have an unsaved doc open in my app (I mean one that has never been saved
> to disk), and I kill the app, upon relaunch, the OS attempts to restore that
> document, but it does so incorrectly. First of all, the data was never save
Ho Koko,
Set the Deployment Target in the xib to 10.5, and you'll get the warning. The
target is in the File inspector (leftmost tab in the right pane).
On Feb 11, 2013, at 10:46 AM, koko wrote:
> Furthermore, where is the warning that I am building with the 10.8 SDK,
> deploying 10.5 and tha
my
> NSTableCellView subclass I do not call
> setTranslatesAutoresizingMaskIntoConstraints: or override
> requiresConstraintBasedLayout. My custom view is a subview of my
> NSTableCellView subclass.
That sounds exactly right.
>
>
> One more question below...
>
>
> O
On Dec 8, 2012, at 4:19 PM, Chuck Soper wrote:
> Hi Peter,
>
> On 11/27/12 6:33 PM, "Chuck Soper" wrote:
>> On 11/27/12 2:11 PM, "Peter Ammon" wrote:
>>
>>> Hi Chuck,
>>>
>>> Autolayout works well with NSSplitView in 10.
Hi Chuck,
Autolayout works well with NSSplitView in 10.8.
On Nov 27, 2012, at 10:27 AM, Chuck Soper wrote:
> Hi, I'm writing a Mac app for 10.8 (with Xcode 4.5.2) and I need to
> implement a layout similar to iPhoto. I think that the way to do use an
> NSSplitView with the right view containing
Hi Koen,
Is your window set to be visible at launch (i.e. in IB)? Try making it not
visible at launch, and then ordering it onscreen after the nib is loaded. That
should allow all the awakeFromNib methods to run before the window appears.
Hope that helps,
-Peter
On Aug 16, 2012, at 3:53 PM, Ko
On May 8, 2012, at 2:01 AM, ecir hana wrote:
> Why's that? Do I have to remember the returned NSPoint and pass it to
> next cascadeTopLeftFromPoint:?
Yes; the usual pattern is:
static NSPoint cascadeLoc = {0, 0};
cascadeLoc = [window cascadeTopLeftFromPoint:cascadeLoc];
The first time this is
Hi koko,
This could be anything from "the view is added to the wrong subview" to "the
view has a frame that moves it outside of its' parents bounds" to "the view is
visible but does not draw anything."
Two powerful tools that will help you with debugging:
- Run with NSShowAllViews set to YES
-
On Mar 20, 2012, at 10:01 AM, Charles Srstka wrote:
> On Mar 20, 2012, at 8:16 AM, Richard Somers wrote:
>
>> On Mar 19, 2012, at 10:20 PM, Charles Srstka wrote:
>>
>>> As everyone knows, if you have a view with a bunch of subviews and you’ve
>>> got NSLayoutConstraints set up for everything,
Hello Charles,
It sounds like you have the idea that constraints establish a minimum and
maximum size on a window (or view), and the window is free to take on any size
within that range. When you resize a window, it evaluates the constraints at
the proposed size. If would make the constraints
The checkmark is the on-state image. Try calling [menuItem setState:NSOnState];
Hope this helps,
-Peter
On Mar 6, 2012, at 5:21 PM, Prime Coderama wrote:
> I am trying to add an icon to only one NSMenuItem item but it is indenting
> the icon and text by 1 level.
>
> I tried to set the setInde
On Jan 28, 2012, at 4:23 PM, Erik Stainsby wrote:
> Hello list folks,
>
> I'm struggling with the abstraction and sketchy documentation that surround
> NSRuleEditor. I feel a need to know that the effort is worthwhile, versus
> cobbling together something in a table or outline view instead.
>
On Dec 9, 2010, at 8:45 AM, Jesper Papmehl-Dufay wrote:
> Hi!
>
> I'm having a bit of trouble with the segmented control.
> I'm trying to use it as a group of check buttons (I set the Mode to Select
> Any in Interface Builder).
> This works fine as long as I don't set the Style to Textured Roun
On Sep 27, 2010, at 1:38 PM, Mike Silva wrote:
> We have a simple application with multiple NSView subclasses (like Buttons,
> TextFields, etc.) that are being updated every couple seconds with status
> information. After a couple days of running continuously the application
> will lock on th
On Sep 27, 2010, at 11:35 AM, Russ wrote:
> I have different menu keys set up in my app for control-4 and
> control-number-pad-4, but it seems that Cocoa is not distinguishing between
> the
> two. (There are several key equivalents in the number-pad area that are used
> for
> variants on dir
On Sep 27, 2010, at 12:35 PM, k...@highrolls.net wrote:
> Is it possible to set a tool tip for a segment of a segmented control
> programatically?
>
> That is what would be the receiver of -setToolTip?
>
> Or, how does one get the view for a segment?
Yes, see -[NSSegmentedCell setToolTip:forS
SCaseInsensitivePredicateOption];
> }
>
> I don't know what lhs, rhs and type must be. should I pass [[self
> leftExpresions] objectAtIndex:0] and also for the rightExpresion? or does it
> comes from the subpredicates parameter?.
>
> sorry I got little confused
On Aug 13, 2010, at 8:45 AM, Gustavo Pizano wrote:
> Hello all once again.
>
> I have been searching but I hadn't found something useful, so please before
> if you know a place I can look at let me know.
>
> I have these 3 Entities
>
> ExpenditureGroup:
> name
> icon.
>
On Aug 9, 2010, at 5:37 PM, Tony Romano wrote:
[...]
>
>
> Looking at the documentation for NSToolbarItem setAction:, it has a little
> note: "For a custom view item, this method calls setAction: on the view if it
> responds.". Which I infer to mean, that the basic Custom View should work.
re of that
> somewhere else?
>
> thanks,
> augusto.
>
> On Jun 25, 2010, at 3:26 PM, Peter Ammon wrote:
>
>>
>> On Jun 25, 2010, at 2:58 PM, augusto callejas wrote:
>>
>>> hi-
>>>
>>> i'm constructing an NSMenu with a delegate
On Jun 25, 2010, at 2:58 PM, augusto callejas wrote:
> hi-
>
> i'm constructing an NSMenu with a delegate to handle menuDidClose.
> that menu has an NSMenuItem that had an action to handle when its selected.
> when i select the menu item from the menu, it calls menuDidClose, and then
> the actio
On Jun 22, 2010, at 6:56 PM, Gideon King wrote:
> Hi, I have a toolbar item that I want to use for having an item that I drag
> onto my main view. I can initiate the drag from my custom view, but the
> window gets moved by the mouse down/dragged. I'm sure this will be trivial,
> but can't thin
On Jun 15, 2010, at 2:56 PM, Lightning Duck wrote:
> I need to make an application that runs a bit as a 'service' if you will.
> Not in the sense of running from the "Services" menu but something the tuns
> continually in the background with an Icon in the Dock or a Window of it's
> own, tha
If a window is ordered out, AppKit will not order it back in when the app is
activated. Is it possible that a different window is created, or that the
window was not ordered out to begin with?
I'm confused when you say that an ordered-out window is the key window. That
should not be possible.
On May 20, 2010, at 1:14 PM, James Maxwell wrote:
> I thought I'd change the topic on this, since the content really has changed.
>
> I have an table for setting up MIDI instruments with a name, port, and
> channel. I've got the initial display of options for the table row displaying
> correct
On Apr 30, 2010, at 1:18 PM, Matthew Mashyna wrote:
> I have an app that acts as a monitor for some other critical apps and one
> thing the spec calls for is the need to look at other running apps and figure
> out if they are running in 32 or 64 bit mode. The Activity monitor knows
> this. How
On Apr 22, 2010, at 3:33 AM, Yuriy Shevyrov wrote:
> Hi all,
>
>
>
> Does exist any way to fill top and bottom edges of pop-up NSMenu in a
> specified color?
>
>
>
> I perform porting of one carbon application to cocoa, to be 64-bit
> compatible. The problem is that the old application h
On Apr 19, 2010, at 7:46 AM, Kevin Walzer wrote:
> I'm trying to port some Carbon code that provides basic services menu
> integration to a Cocoa application. This code implements the basic Carbon
> event handlers for this functionality, cf:
>
> const EventTypeSpec carbonServiceEvents[] = {
>
Hi Ulf,
The first instance of NSDocumentController (or a subclass) becomes the shared
instance. It sounds like some code is instantiating an instance of
NSDocumentController before your class, so the shared instance is of the base
class instead of your subclass. I don't know what would be cau
On Mar 25, 2010, at 9:10 AM, Markus Spoettl wrote:
> Hi Peter,
>
> On Mar 24, 2010, at 11:13 PM, Peter Ammon wrote:
>> Yes, this is a known problem on Leopard. The issue is that when NSToolbar
>> shows the customization palette, well, a view can't be in the toolbar
Hi Markus,
Yes, this is a known problem on Leopard. The issue is that when NSToolbar
shows the customization palette, well, a view can't be in the toolbar and the
customization palette simultaneously, so NSToolbar "copies" the popup via
NSKeyedArchiver. Unfortunately, NSMenu's encodeWithCoder
On Mar 12, 2010, at 7:17 PM, Graham Cox wrote:
>
> On 13/03/2010, at 2:03 PM, Graham Cox wrote:
>
>> I notice though that at runtime I'm able to drag an image of each row. What
>> can I do with this drag?
>
> I just realised that the drag allows me to reorder the rows - is that its
> only pu
On Mar 12, 2010, at 1:47 PM, Dave DeLong wrote:
> Hi everyone,
>
> I'm trying to build a custom predicate editor row template that lets me do
> predicates like "in the last 30 days" or "since {aDate}". For the simple
> date comparison, I'm returning an NSDatePicker as the third view in my
>
On Mar 12, 2010, at 9:35 AM, Gwynne Raskind wrote:
> While profiling a project I'm working on, I found that while most of my time
> was being spent in glFlush() (which is completely expected for an
> OpenGL-based game), a non-trivial amount of time is being spent in dozens of
> KVO internal me
On Mar 10, 2010, at 11:30 AM, John C. Daub wrote:
>
> Can you obtain the localized display of an NSRuleEditor?
>
[...]
> I can't see any way to extract the actual displayed GUI (post-formatting),
> other than obtaining the criteria or displayValues myself, obtaining the
> formattingDictionary
On Feb 17, 2010, at 8:30 AM, Tom Davie wrote:
> I need an NSMenuItem that rather than drawing an NSImage in it's cell draws
> *part* of an NSImage, is it possible to override NSMenuItem's drawing in any
> way to achieve this? I don't see the relevant methods.
Can't you just make a different NSI
Hi Eric,
Consider using a single-segment NSSegmentedControl. If the NSSegmentedControl
has both an action and a menu, then you will get the behavior you describe.
Furthermore, it will use the system-standard menu delay, plus make the menu
available to accessibility clients.
-Peter
On Feb 1,
On Jan 15, 2010, at 11:41 AM, Eric Gorr wrote:
> I have some sample code at:
>
> http://ericgorr.net/cocoadev/UtilityMenu.zip
>
> According to the documentation in "Application Menu and Pop-up List
> Programming Topics for Cocoa", to get mutually exclusive states, one my
> manage this oneself
On Jan 13, 2010, at 3:46 PM, Mike Chambers wrote:
> [...]
> I then add this to the NSPredicateEditor, and it works as expect.
> However, the left column in the editor for this row shows
> "professions" (the key value). I want it to show "Profession". If I
> was using IB this would be very simple,
Hi Eric,
On SnowLeopard and later, use the NSMenu method popUpMenuPositioningItem:
atLocation: inView:.
Before SnowLeopard, this is probably the easiest way:
NSPopUpButtonCell *cell = [[NSPopUpButtonCell alloc] initTextCell:@""
pullsDown:NO];
[cell setMenu:menu];
[cell performClickWithFrame:NS
On Dec 22, 2009, at 3:52 PM, Jerry Krinock wrote:
>
> On 2009 Dec 22, at 15:37, Peter Ammon wrote:
>
>> Can you see if the "pbs" process is running? If so, what does sample show
>> it's doing?
>
> Yes it is, and, not doing too much. I took this
On Dec 22, 2009, at 10:57 AM, Houdah - ML Pierre Bernard wrote:
> When I hit the "+" button on a row in NSRuleEditor, a new row is created. How
> can I take influence on the criteria used for that row.
>
> It seems NSRuleEditor defaults to selecting the first criterion sequentially
> from the
On Dec 22, 2009, at 6:20 AM, Jerry Krinock wrote:
> The last few days, I've seen this message in the console when I launch an app
> I'm working on:
>
> __CFServiceControllerBeginPBSLoadForLocalizations timed out while talking to
> pbs
>
> The message also sometimes appears again a few minutes
On Dec 21, 2009, at 7:29 AM, Uli Kusterer wrote:
> On 18.09.2009, at 23:07, Peter Ammon wrote:
>> For key events without modifiers, like hitting the spacebar, the first
>> responder of the key window should get first crack via keyDown:. So I'm not
>> sure why you&
On Dec 4, 2009, at 2:13 PM, John Mikros wrote:
> Hello all,
>
> I have a window with an NSToolbar attached. The toolbar is created with
> defaultItemIdentifiers being an empty NSArray, and then we add items via
> insertItemWithItemIdentifier:atIndex:
>
> All the item identifiers that are add
On Dec 4, 2009, at 1:08 PM, Carter R. Harrison wrote:
> Apple's documentation for NSRuleEditor indicates that it exposes a binding
> named "rows". When I drag an NSRuleEditor onto my NSWindow in IB, I flip
> over to the Bindings tab of the inspector and I don't see any bindings named
> "rows"
On Nov 4, 2009, at 11:41 AM, Viraj Mody wrote:
> I have an application that sits in the status bar on the Mac. It has a menu
> that lets you look at the app version, change some settings and quit the
> app.
>
> I built it on Leopard and it works fine on Leopard. On Snow Leopard, I can
> see the
On Oct 8, 2009, at 1:05 AM, Kevin Bracey wrote:
Hi Guys and Gals,
I have some Leopard code that works fine, but on Snow it doesn't,
hoping someone might have an idea how for fix it ;-)
I use an AppleScript to mount a afp
tell application "iLike Installer"
set holdMountPoin
Hi Brad,
The group item will use its own label, if it has been set. Probably
creating the toolbar in IB caused the item to acquire an empty label.
Calling [groupItem setLabel:nil] should cause it to discard its own
label and use its children.
Let me know if that doesn't work,
-Peter
On
On Sep 24, 2009, at 8:09 PM, Jens Alfke wrote:
On Sep 24, 2009, at 6:41 PM, Rick Mann wrote:
I'm scanning a directory for plugins for my app. Given a path,
what's the right way to tell if it's a path to a bundle?
-[NSWorkspace isFilePackageAtPath:].
Actually, bundles are often packages
On Sep 17, 2009, at 12:29 PM, Uli Kusterer wrote:
Hi,
I have an app that contains a QTMovieView. I've set things up so
people can use the arrow keys to skip, fast forward, rewind, use
space to play/pause etc., as they're used to from other movie-
playing apps. Now, I'd like to add menu it
On Sep 17, 2009, at 5:05 PM, Felipe Monteiro de Carvalho wrote:
Hello,
The most reliable way is to ask the menu for its font, via the -
[NSMenu
font] method.
Thanks, but this method was introduced in Mac OS X 10.6
Is there any solution which works in 10.4?
For OSes prior to SnowLeopard,
On Sep 17, 2009, at 3:09 PM, David M. Cotter wrote:
say the user say clicks the file menu, the file menu opens
then say they hover over "recent items" and then clicks it (i don't
know, out of habit or something)
in carbon, this click is ignored, rightfully it seems
in cocoa, it dismisses t
On Sep 17, 2009, at 7:17 AM, Felipe Monteiro de Carvalho wrote:
Hello,
I would like to make the text in a menu item bold, while maintaining
everything else exactly like in other menu items. Reading and
searching I managed to find the appropriate routines to do this, but I
seam to have found a
On Sep 17, 2009, at 11:03 AM, Georg Seifert wrote:
Hi,
If I show a context menu in my view and then click somewhere in the
view, mouseDown for the view is not called. Subsequent mouseDragged
are triggered.
The view returns YES in acceptsFirstMouse and acceptsFirstResponder.
What do I mi
On Sep 11, 2009, at 8:10 AM, Arun wrote:
Hi All,
Does anybody know how to create an NSSegmentedControl with squared
edges ?
If anyone has sample code please share..
I know if i use leopard SDK, by just changing a style in the IB we can
achieve this. But since my app needs to support on tige
On Sep 10, 2009, at 12:15 PM, Nick Zitzmann wrote:
On Sep 10, 2009, at 1:08 PM, Peter Ammon wrote:
You should try to pick a UTI that represents your Service
accurately. If the UTI you pick does not conform to any category,
then it will wind up in General. But if later Apple adds a new
On Sep 10, 2009, at 10:30 AM, Nick Zitzmann wrote:
I have a service that can apply to multiple categories due to the
pasteboard types it accepts. In Snow Leopard, for some reason, the
service always shows up under the Pictures category even though it
also accepts text. I want it to show up
On Sep 4, 2009, at 11:31 AM, Jim Turner wrote:
Hi all,
I have an application (QuicKeys) that allows the user to define menu
selection as an action. In our latest version and under Leopard, we
present UI that replaces the main menu bar of our app with the menu
bar of the target app (via setMain
Hi Colin,
Adding the NSRequiredContext is the right way to make it appear by
default.
Note that after adding it, you will have to run /System/Library/
CoreServices/pbs (or log out and back in) to make the Service appear.
If you are unsure if the system is recognizing the context, run pbs
On Aug 13, 2009, at 2:56 PM, David M. Cotter wrote:
i know i can detect when a particular menu is about to be shown, but
what I want is to run a quick process before any menus from the menu
bar are shown, and not run it again all the while the user is
browsing the menus in the menu bar
h
On Aug 12, 2009, at 3:20 PM, Dave DeLong wrote:
Thanks for the info! I spent some time at NSCoder Night last night
poking around with attempting to convert an NSPredicate into an
NSCompoundPredicate using the TODParseKit and the BNF definition of
NSPredicate grammar in the docs, then even
On Aug 11, 2009, at 5:51 PM, Dave DeLong wrote:
Hey everyone,
Hi Dave!
I'm about to embark on understanding NSRule/PredicateEditors but
before I get too deep into the code, I wanted to ask a couple
questions.
I'm hoping to create an interface whereby the user can create an
NSPredica
you change the Operating System language, Search menu item
disappears. Is there any way in which we can get the Search menu
item under Help Menu in all the languages?
Thanks
Arun KA
On Sat, Jul 25, 2009 at 4:33 AM, Peter Ammon wrote:
On Jul 24, 2009, at 11:22 AM, Arun wrote:
Hi All,
I hav
On Jul 24, 2009, at 11:22 AM, Arun wrote:
Hi All,
I have a cocoa application which is localized in multiple languages.
My application uses default Menu's like File, Edit, View, etc.,
When the language is set to English in the System Preferences ->
International -> languages, Under the Help men
On Jul 8, 2009, at 6:15 PM, I. Savant wrote:
On Jul 8, 2009, at 9:06 PM, Peter Ammon wrote:
So for menus that may take a while to build, consider appending the
items as they come in (like the Airport status item), or showing a
"Building..." item until you're ready to add t
On Jul 8, 2009, at 8:02 PM, Graham Cox wrote:
On 09/07/2009, at 11:06 AM, Peter Ammon wrote:
- (BOOL)menu:(NSMenu *)menu updateItem:(NSMenuItem *)item atIndex:
(NSInteger)index shouldCancel:(BOOL)shouldCancel
is actually invoked on some sort of background thread/queue, so
implementing
On Jul 8, 2009, at 6:46 AM, Graham Cox wrote:
On 08/07/2009, at 11:33 PM, I. Savant wrote:
[NSMenuItem setAttributedTitle:];
... and if you want to get really fancy (ie "modern"), you could
build the list with regular strings (just "setTitle:") relatively,
but use NSOperation/Queue to
Hi Laurent,
There are a number of reasons why your Service may not appear in the
menu. Off the top of my head:
1) Your send and receive types may not be handleable by anything in
the app. In particular, NSFilenamesPboardType is not vended by
NSTextView, so I would expect your Service to
On Jun 25, 2009, at 1:42 PM, Bill Bumgarner wrote:
On Jun 25, 2009, at 3:14 PM, Peter Ammon wrote:
In any case, it's been my experience that GC makes memory
management much easier, but precious resource management somewhat
harder. It's harder because GC forces more of a divor
On Jun 25, 2009, at 1:16 PM, Peter Duniho wrote:
On Jun 25, 2009, at 12:11 PM, Kyle Sluder wrote:
[...] .NET users often call Dispose()
explicitly, because it is useful in situations other than inside
using
blocks.
Though, to be clear (lest the tendency to want to put down the other
be
On Jun 25, 2009, at 12:11 PM, Kyle Sluder wrote:
On Thu, Jun 25, 2009 at 11:39 AM, Peter Ammon wrote:
Are you saying that it's not sloppy to close a file twice, unlock a
lock
twice, etc.?
It sounds to me like you were originally referring to language
implementation sloppiness, whic
On Jun 24, 2009, at 8:11 PM, Kyle Sluder wrote:
On Wed, Jun 24, 2009 at 7:55 PM, Peter Ammon wrote:
Microsoft even says that all objects must be robust against being
Dispose()d
multiple times, which smacks of sloppiness. If your program
disposes of an
object twice, then it is structured so
On Jun 24, 2009, at 6:02 PM, Stephen J. Butler wrote:
On Wed, Jun 24, 2009 at 7:40 PM, Jeff
Laing wrote:
http://www.simple-talk.com/dotnet/.net-framework/understanding-garbage-collection-in-.net/
(Yes, I do .NET as well as Cocoa)
No real surprises there, except for the closing paragraphs wh
On Jun 1, 2009, at 3:53 PM, David Reitter wrote:
Having subclassed NSToolbar, I am now trying to get a notification
of changes done by the user using the customization palette.
This works fine for the removal of items (toolbarDidRemoveItem:),
but I can't see a way to get notified of added/mo
Hi Ken,
The menu item unhighlights after the menu item's action is finished.
If user input should be blocked while the script is running, then you
should register for the NSTaskDidTerminateNotification and then drive
the main run loop forwards from within your menu item's action method,
On May 29, 2009, at 1:41 AM, Nikhil Khandelwal wrote:
Hi,
Is it possible to rearrange items in customize toolbar ?
I want to change the order of NSToolbarItem in NSToolbar.
Thanks,
Nikhil
Hello Nikhil,
The order of the items in the toolbar is determined by the order of
the item identifie
On May 28, 2009, at 1:57 PM, Erg Consultant wrote:
Is there a way to hide a GUI app's icon in the process/switch list
as can be done for faceless background apps?
I've tried several of the Info.plist settings but nothing seems to
do this.
Thanks,
Erg
Hi Erg,
The LSUIElement key preve
d below in order to ensure that the popup
has current values.
Can you please confirm my understanding?
Thanks,
Martin
On 22-May-09, at 10:55 PM, Peter Ammon wrote:
On May 22, 2009, at 9:37 AM, Martin Stanley wrote:
I've finally got the hang of NSPredicateEd
On May 22, 2009, at 9:37 AM, Martin Stanley wrote:
I've finally got the hang of NSPredicateEditor and custom
NSPredicateEditorRowTemplates. (It sure took a while and many, many
searches and head-scratchings). However, I am stuck on one thing and
I suspect that the problem might lie in the
This code is correct. You may have customized the toolbar as a user,
so that toolbarDefaultItemIdentifiers is not called. In that case,
you can throw away the preferences file for testing. Otherwise,
you'll have to explain what you mean by "not working."
On May 19, 2009, at 10:26 AM, Ar
Hi Gideon,
It sounds like the PDF image is being rasterized at the point you sent
it on the menu item, and being cached into a NSCachedImageRep; for the
subsequent menu items the cache is used.
If you can arrange for the image to be rasterized before the being set
on the menu item, it wou
rms to bundle rather than
package and appears in the finder like a folder. However
applications descend from bundle and do NOT appear like folders.
Why does finder decide that frameworks appear like folders?
And which items does spotlight indexing delve into? Which items
would iDisk synchron
On May 10, 2009, at 10:43 PM, Chris Idou wrote:
>> Would it be fair to say that if a path is a directory, and if the
kMDItemContentType != public.folder then
NSWorkspace.isFilePackageAtPath would
>return YES?
>
>No. A non-package directory may not even conform to
public.folder. For ex
On May 10, 2009, at 6:46 PM, Chris Idou wrote:
Would it be fair to say that if a path is a directory, and if the
kMDItemContentType != public.folder then
NSWorkspace.isFilePackageAtPath would return YES?
No. A non-package directory may not even conform to public.folder.
For example,
On May 10, 2009, at 2:24 PM, Seth Willits wrote:
If I create a text view, type in some text with different styles
multiple lines etc, and grab the attributed string object, when I
draw that attributed string using drawInRect: with the same bounds
as the text view, there are small differe
On Apr 24, 2009, at 5:41 AM, Jerry Krinock wrote:
I'm creating an NSPopUpButtonCell programatically.
To show the menu I invoke -[NSPopUpButtonCell
performClickWithFrame:inView:]. It works -- however after the menu
has popped up, been clicked and dismissed,
- Timers in the main thread s
Hi Jerry,
On Apr 24, 2009, at 5:41 AM, Jerry Krinock wrote:
I'm creating an NSPopUpButtonCell programatically.
To show the menu I invoke -[NSPopUpButtonCell
performClickWithFrame:inView:]. It works -- however after the menu
has popped up, been clicked and dismissed,
- Timers in the mai
This looks like a bug. I appreciate your taking the time to check and
hopefully to file it.
-Peter
On Apr 12, 2009, at 1:22 PM, Seth Willits wrote:
I need a sanity check before I file a bug report.
sc is a 3-segment NSSegmentedControl with either Select One or
Select Any as its mode.
On Apr 8, 2009, at 2:47 PM, Rua Haszard Morris wrote:
I'm baffled, this seems fundamental, I can't see how it's done!
I have a Menu in a nib file, which I need to use in a few places in
code. So I want to do something like
NSMenu* myMenu = [NSMenu menuFromNib:@"MyNibFile"
name:@"MyUseful
CGRectGetHeight(CGDisplayBounds (CGMainDisplayID
())) == zeroScreenHeight()?
Jesper Storm Bache
Core Technologies
Adobe Systems Inc
On Apr 1, 2009, at 12:25 PM, Peter Ammon wrote:
On Mar 31, 2009, at 9:34 PM, Trygve Inda wrote:
Using these two calls:
NSRect nsRect = [screen frame
On Mar 31, 2009, at 9:34 PM, Trygve Inda wrote:
Using these two calls:
NSRect nsRect = [screen frame];
CGRect cgRect = CGDisplayBounds (displayID);
I get for my two screens:
NSx=0y=0 w=2560h=1600 // screen A
CGx=0y=0 w=2560h=1600
NSx=-1920y
On Mar 31, 2009, at 12:16 PM, John Mikros wrote:
Hello all,
I have a custom view in an NSToolbar. I would like this item to
expand as much as possible, similar to
NSToolbarFlexibleSpaceItemIdentifier, or similar to the address bar
in Safari.
I was hoping that setting the min and max s
On Mar 18, 2009, at 3:05 PM, James Maxwell wrote:
I've got a really frustrating, and really silly problem.
I have some fairly complex machine learning code I'm working on.
I've noticed inconsistent output from a particular method. I'm doing
some fairly nasty array and matrix stuff, which i
On Mar 15, 2009, at 11:20 PM, Peter Zegelin wrote:
I have some text labels in a registration dialog that contain the
application name eg
"xxx Demonstration"
"Thank you for purchasing xxx"
and so on.
I would like this registration dialog to be general enough that I
can use it in multiple
On Mar 13, 2009, at 7:59 PM, John Engelhart wrote:
On Fri, Mar 13, 2009 at 8:26 PM, Peter Ammon wrote:
http://c-faq.com/malloc/alloca.html for a rough idea why)
The goal is for the compiler to not use individual write barriers
at all,
and it won't for stack allocated buffers.
On Mar 13, 2009, at 4:47 PM, John Engelhart wrote:
On Thu, Mar 12, 2009 at 3:17 PM, Peter Ammon wrote:
Hi John,
Instead of storing each string individually into the heap, try
batching up,
say, 1k or so into a stack allocated buffer. Then use
objc_memmove_collectable() to move them in
On Mar 12, 2009, at 6:04 AM, John Engelhart wrote:
This is (obviously) due to -fobjc-gc turning the storing of a __strong
pointer in to a call to objc_assign_strongCast(). Each and every call
to objc_assign_strongCast, in turn, grabs a gc lock before it does its
work. Soo.. what was a simple
On Mar 6, 2009, at 6:42 AM, David Hoerl wrote:
[following up to a Jan 08 thread]
> is it possible to modify the width of the NSTextField representing
a "Number" in a NSPredicateEditorRowTemplate ?
Yes, but not yet in Interface Builder. To do so programatically,
get the row template, get
1 - 100 of 199 matches
Mail list logo