Some of the setup methods are on a queue in the run loop and are done after
applicationDidFinishLaunching: (in this case the content object of your
array controller is not yet populated as the core data fetch hasn't been
done yet). Run your method by placing it on the queue during
Am 29.02.2008 um 20:55 schrieb Ben Lachman:
[self displayIfNeededIgnoringOpacity];
Is there a particular reason why you're calling this method? Won't
plain old -displayIfNeeded do the job?
Cheers,
-- Uli Kusterer
The Witnesses of TeachText are everywhere...
http://www.zathras.de
Hi folks,
just a short heads-up that there's a new version of UKCrashReporter out.
UKCrashReporter is a class that checks for crash reports at startup
and offers to send them to a CGI (PHP script or whatever) on your
server. It does not patch anything, does not inject any code, it plays
On Monday, March 03, 2008, at 11:53AM, Duncan McGregor [EMAIL PROTECTED]
wrote:
I can simply check the calculated size after calling ffi_prep_cif(), and
compare that to sizeof(void*) to see if the return value will fit in a
register.
Is that right? 8 byte structs are returned in EAX and
Thank you for the information. Search Kit does allow indexing
arbitrary pieces of data that don't have to correspond to actual
files, and since Spotlight is built on top of Search Kit I thought
there would be some way to do the same thing.
Thanks,
Adam
On Mar 3, 2008, at 1:54 AM, Jens
Hi,
I'm using NSTableView for displaying.
Now I need to show an icon in every row and also have to display 2
rows of text in one row of tableView.
Is it possible, if yes then how and can i incresse a row's width to
accomodate two rows of text?
OR
if not possible, then can i use NSOutlineView
Hi everyone.
As the developer documents mention, we can create a PDFPage from a
NSImage. After did some experiments, I found it was very handy to do
some tasks. Thanks to Apple.
However, I want to know whether it is possible to create the PDFPage
instance directly from the CGImage,
Jens Alfke wrote:
Moreover, since Obj-C is a dynamic language, it's more important what
the class of the object is at runtime, than what type the pointers are
defined as at compile time. You can change the type declarations, but
it won't affect what actual objects you get back at runtime.
Thank you for the update on that sample code. I was hoping it would
continue to be ignored because I was publicly berated in the #macdev
channel for posting it, but oh well. Thanks to Wolf's post up there,
I'm not going to continue to learn SB any longer, and I just hope
Apple fixes it up.
On
Hi Guys,
I'm trying to find a way to use NSPredicate to search an NSString for
all occurrences of a string and return them to me. Ideally I need the
returned strings ranges too.
Is this possible? I can get is to tell me that a regex match is found
using a predicate with the format @SELF
I am writing my first coredata application and am wondering what the
recommended way is to populate initial data. Most coredata examples do
a good job explaining binding and getting data from the UI but fail to
refer to populating the initial data set.
I was looking at the background fetching
Hello,
I have an application that auto-formats documents as the user types
according to certain industry standards. For instance, it might change
the indent on the text or it might apply bold or italic formatting. I
was doing this using a text storage subclass that would look up the
On Mar 3, 2008, at 7:48 AM, Jason Kravitz wrote:
I am writing my first coredata application and am wondering what the
recommended way is to populate initial data. Most coredata examples do
a good job explaining binding and getting data from the UI but fail to
refer to populating the initial
On Mar 3, 2008, at 2:27 AM, Conor wrote:
Some of the setup methods are on a queue in the run loop and are
done after
applicationDidFinishLaunching: (in this case the content object of
your
array controller is not yet populated as the core data fetch hasn't
been
done yet). Run your method
On 3 mar 2008, at 18.14, Nir Soffer wrote:
On Mar 3, 2008, at 18:24, Mattias Arrelid wrote:
I have an application that I need to restart.
Why do you want to do that?
A scenario could be that the entire contents of the .app bundle has
been replaced with new stuff (e.g. the case with
Mattias Arrelid wrote:
On 3 mar 2008, at 18.14, Nir Soffer wrote:
On Mar 3, 2008, at 18:24, Mattias Arrelid wrote:
I have an application that I need to restart.
Why do you want to do that?
A scenario could be that the entire contents of the .app bundle has
been replaced with new stuff
On Mar 3, 2008, at 9:25 AM, Todd Ransom wrote:
I do ensure that paragraph styles are consistent throughout the
paragraph. New styles are applied in insertNewlineForTextView: or,
if the user changes them manually, they always cover the range of
the entire paragraph. What I am seeing is
On Mar 3, 2008, at 10:12 AM, Jonathan Dann wrote:
On 3 Mar 2008, at 16:16, Mike Abdullah [EMAIL PROTECTED]
wrote:
Jonathon, you'll have much better luck with NSScanner. It's
designed for exactly what you want.
Mike.
Thanks Mike, just tried it and it works quite well. Any way of
On 3 Mar 2008, at 16:16, Mike Abdullah [EMAIL PROTECTED]
wrote:
Jonathon, you'll have much better luck with NSScanner. It's designed
for exactly what you want.
Mike.
Thanks Mike, just tried it and it works quite well. Any way of using
NSScanner directly with regex? Not
I have discovered that it is now almost possible to create toolbars
from within
Interface builder, with one big exception. There appears to be no
way to
define identifiers for the toolbar items.
Is this a sign of future functionality? I can not find any
documentation
on NSToolbar within
On Mar 3, 2008, at 1:21 PM, Mike Abdullah wrote:
Relying on -description would almost certainly be a bad idea as it
might change in the future. Also, it will take up a lot of room. I'd
recommend:
http://www.dribin.org/dave/blog/archives/2006/03/12/base64_cocoa/
Why convert to a string
Hey Brian -
There are two known issues with IB 3.0 and AppKit where toolbars and
path cells cause this issue during ibtool compilation. If it's a path
control that's giving you trouble, I suggest changing the style to
something other than NSPathStylePopUp and then resetting the style
On Mar 3, 2008, at 10:53, Brian Krisler wrote:
I have discovered that it is now almost possible to create
toolbars from within
Interface builder, with one big exception. There appears to be no
way to
define identifiers for the toolbar items.
Is this a sign of future functionality? I
Perhaps a small application like relaunch.app could be imbedded into
your relaunchable application, where all it pretty much does is serve
as a buffer by relaunching your application reliably (through Cocoa
methods) after your app calls it the same way you mentioned above.
[[NSWorkspace
HI - I have what seems a silly question, but I can't seem to find an
answer. I have a window in IB which contains a 'Core Data Entity'
table view. This pre-built table has a number of columns, some
contained strings and some containing integers. What I want to do is
change the binding of
I didn't see anything easy documented to override or control this
behavior, although perhaps I just overlooked them. What techniques
have people used to improve this behavior in cocoa based code-editors?
-smartInsertDeleteEnabled: / -setSmartInsertDeleteEnabled:
--
I.S.
On Mar 3, 2008, at 12:51, Martin Linklater wrote:
HI - I have what seems a silly question, but I can't seem to find an
answer. I have a window in IB which contains a 'Core Data Entity'
table view. This pre-built table has a number of columns, some
contained strings and some containing
On 3 Mar 2008, at 21:10, Quincey Morris wrote:
Select the table column (which takes 3 clicks if you're starting at
the top level). Click again to select the table column cell. You
should see a little circle that represents the formatter. Click on
the circle to select it and press Delete
On 3 Mar 2008, at 15:27, Steven Degutis wrote:
Thank you for the update on that sample code. I was hoping it would
continue to be ignored because I was publicly berated in the #macdev
channel for posting it, but oh well.
Don't feel too bad: if you're coming from a Cocoa background,
I checked the archives and didn't see anything. How do I set the image
to display in a pull-down NSPopUpButton using Interface Builder 3.0?
No matter what I type in the image field, the field is always cleared
out, and no image is displayed. I also tried setting the image in the
first menu
On 3 Mar '08, at 5:50 AM, Adam P Jenkins wrote:
Thank you for the information. Search Kit does allow indexing
arbitrary pieces of data that don't have to correspond to actual
files, and since Spotlight is built on top of Search Kit I thought
there would be some way to do the same thing.
On 3 Mar '08, at 6:34 AM, Nick Rogers wrote:
Now I need to show an icon in every row
Add a new column and make its data cell an NSImageCell in IB.
and also have to display 2 rows of text in one row of tableView.
Is it possible, if yes then how and can i incresse a row's width to
On 3 Mar '08, at 1:08 PM, Dave Hersey wrote:
Is there a way to get NSURLConnection to connect to an SSL server
that has an expired certificate?
I don't think so. I can't find any public API having to do with SSL or
certificates.
If this can't be handled by NSURLConnection, is there a
On 3 Mar '08, at 1:10 PM, aldo kurnia wrote:
Given a window's TITLE, how do you create a reference to it,
determine what kind of application the window is (the name of the
application/executable)? and how do you move that window to the front?
Applications run in protected memory spaces.
On 3 Mar '08, at 1:56 PM, Nick Zitzmann wrote:
I checked the archives and didn't see anything. How do I set the
image to display in a pull-down NSPopUpButton using Interface
Builder 3.0?
That's funny, I was just doing this for the first time today, too! I
got it to work...
I also
On Mon, Mar 3, 2008 at 2:43 PM, Steven Degutis [EMAIL PROTECTED] wrote:
Perhaps a small application like relaunch.app could be imbedded into
your relaunchable application, where all it pretty much does is serve
as a buffer by relaunching your application reliably (through Cocoa
methods)
On Mar 3, 2008, at 1:10 PM, aldo kurnia wrote:
So, I looked at Accessiblity API and NSApplication looks somewhat
promising because it can give out its NSWindow children reference
and there are functions to activate them. One missing piece of the
puzzle though, is that I couldn't find any
On Mar 3, 2008, at 3:21 PM, Jens Alfke wrote:
Don't set the button style back to pop-up. Leave it pull-down, and
set the button's Position attribute to image-only. Then select the
first menu item and set its image name.
Thanks. I guess it's a bug, then, that filling out the title of the
Hi,
I'm not trying to manipulate anything in the protected memory space. All I want
to do is determine the name of the application / process from the window, and
then bring it to the front-most index.
UI scripting is exactly what I've tried to do and failed. For example, you'd
expect the
On Mar 3, 2008, at 2:08 PM, Dave Hersey wrote:
Is there a way to get NSURLConnection to connect to an SSL server
that has an expired certificate?
There is, but it's private.
Nick Zitzmann
http://www.chronosnet.com/
___
Cocoa-dev mailing list
Hi Nick,
See the docs for -[NSPopUpButtonCell setImage:]:
---
setImage:
This method has no effect.
- (void)setImage:(NSImage *)anImage
Parameters
anImage
The image to display.
Discussion
The image displayed in a pop up button is taken from the selected menu
item (in the case of a pop up menu)
On Mar 3, 2008, at 3:57 PM, Ken Ferry wrote:
See the docs for -[NSPopUpButtonCell setImage:]:
But if setting the title in the inspector works, it follows that
setting the image should also work... The fact that it doesn't is
quite confusing.
Nick Zitzmann
http://www.chronosnet.com/
On 3/3/08 2:56 PM, Nick Zitzmann said:
I checked the archives and didn't see anything. How do I set the image
to display in a pull-down NSPopUpButton using Interface Builder 3.0?
No matter what I type in the image field, the field is always cleared
out, and no image is displayed.
I filed this
I've come up with an applucation design that works better than my
previous suggestion of psuedo-polling launchedApplications. Rather,
the relaunch application subscribes to NSWorkspace's notification
center, and waits until it gaurantees that its owner-Application has
terminated. If you want the
For the first time a few days ago, I began to use NSPopUpButton and
began to test it in IB3 to experiment around and see what it could do.
Ultimately, I was planning on using -setImage: programattically, but
it seemed odd that I couldn't set its image in IB. Within a few
minutes, I had solved the
I have an object embodying a data model. In a document-based app,
there would be one of these per doc. There can be one or more views
on this data (for example a split view of it). Currently I don't have
a controller between the two - the view is pretty specific so it
implements the
Maybe I'm missing something, but
Instead of NSTask, why not use LSOpenApplication passing in
(kLSLaunchDefaults | kLSLaunchNewInstance | kLSLaunchDontAddToRecents)
for flags? Your main program will block until the sub program has
launched.
Joe Ranieri
Lead Magician, Alacatia Labs,
Hello,
I have C code that I want to generate a strings file for use on Mac. I
use:
#if defined(SYS_DARWIN)
#include CoreFoundation/CFBundle.h
#define _(a) CFStringGetCStringPtr(CFCopyLocalizedStringFromTable( \
CFSTR( a ), CFSTR(LibraryLocalizable), comment ),
Yes, distinctUnionOfObjects turned out to be the answer. Thanks to
everyone who replied. The final answer was simple, though I cant take
credit for coming up with it:
NSArray *allServers = [serverLibraryArrayController arrangedObjects];
NSLog(@%@, [allServers
In Leopard, if you make a window that is textured, then the window's
content is drawn with a gradient, and the bottom corners are rounded
off. However, I noticed that several Apple applications (Address Book,
iCal, Console, probably a few others) are using a look that is
similar, except
genstrings doesn't appear to read stdin, but you could run the C
preprocessor on your source file, send it to a temp file, and then run
genstrings on that.
cpp -DSYS_DARWIN mysource.c /tmp/foo.c
genstrings /tmp/foo.c outputfile
Deborah Goldsmith
Apple Inc.
[EMAIL PROTECTED]
On Mar 3, 2008,
On Mon, Mar 3, 2008 at 10:08 PM, Nick Zitzmann [EMAIL PROTECTED] wrote:
How did they do that? More importantly, how can we do that? It's not
the unified style; I already tried that I think it only does
anything under Tiger.
Look into -[NSWindow setContentBorderThickness:forEdge:], and read
The AppKit release notes cover this:
---
The behavior of -setContentBorderThickness:forEdge:NSMinYEdge and
-setAutorecalculatesContentBorderThickness:NO forEdge:NSMinYEdge for
non-textured windows will do the following: The top gradient will be
repeated in the bottom border, separator lines will
On Mon, Mar 3, 2008 at 11:48 PM, Nick Zitzmann [EMAIL PROTECTED] wrote:
However, it makes no difference. Did anyone get it to draw lighter
this way, and if so, then what worked for you?
You have made the window non-metal, correct?
--Kyle Sluder
___
My problem is that I receive a function call from a C library that
gives me a wchar_t array and its length. The unicode array is _not_
terminated.
The library defines an XML_Char type, so my code below refers to
that, but XML_Char is wchar_t (which, I believe is UTF8 on a Mac).
I'm very
Hi,
I am writing a system daemon that runs (on a client) in the root
session as invoked by launchd, and there is also a per-user user agent
process in each login session. I communicate with this daemon from a
remote process (on a server) via Cocoa Distributed Objects and I want
to trigger certain
On Mar 3, 2008, at 9:19 PM, Karsten wrote:
you can simply use: [NSString stringWithUTF8String: s]. or
[NSString stringWithCharacters:s length: len].
Can't use the former because s is not terminated.
The latter (with a cast):
NSString *str = [NSString stringWithCharacters:(const unichar
57 matches
Mail list logo