Hi,
My application requires that the system does not go to
sleep mode. That can be achieved by calling
UpdateSystemActivity() from an NSTimer. That prevents
the system from going to sleep when my application is
running.
However, if user manually put computer to sleep from
Apple Menu-Sleep, then
On Apr 28, 2008, at 1:13 AM, Adil Saleem wrote:
For my application it is
critical that the system does not go into sleep mode
in the first place.
See here http://developer.apple.com/technotes/tn2002/tn2062.html,
particularly question 15 in the FAQ. Note the caveat about demand
power
Hi Nick, my client sent me this info about his machine.
Model Name:Power Mac G4 (Mirror Door)
Model Identifier: PowerMac3,6
Processor Name:PowerPC G4 (3.2)
Processor Speed: 1.25 GHz
Number Of CPUs:2
L2 Cache (per CPU):256 KB
L3 Cache (per CPU):2 MB
An invalid byte swap may result in allocation of a big memory block
(ie. malloc(mySize) and mySize was not swapped).
This is the kind of issues you may have between Intel and PPC version.
Is it possible that this problem occurs somewhere in your code ?
Le 28 avr. 08 à 09:48, Lorenzo a
Sorry for the noise.
I should read the whole topics before replying. If it works on Tiger,
this is not a swapping issus.
Le 28 avr. 08 à 09:58, Jean-Daniel Dupas a écrit :
An invalid byte swap may result in allocation of a big memory block
(ie. malloc(mySize) and mySize was not swapped).
On 28 Apr 2008, at 07:44, [EMAIL PROTECTED] wrote:
Others have answered with good suggestions for other APIs, but I will
point out for the record that you can do it in Cocoa, too, because the
file system has a path-based mechanism in which ..namedfork/rsrc is
appended to the path. For
Graham,
Thanks for your reply! But how can I find the range of the word given
the glyph index? I just can not find an API doing so.
So I don't think this is the underlying implementation. Any comments
from others?
On Mon, Apr 28, 2008 at 2:51 PM, Graham Cox [EMAIL PROTECTED] wrote:
I imagine
NSTextView has this:
- (NSRange)selectionRangeForProposedRange:(NSRange)proposedSelRange
granularity:(NSSelectionGranularity)granularity
So if the proposedSelRange is a zero-length range at the character
index determined before, and granularity is NSSelectByWord, it should
return the
Graham Cox wrote on 2008-04-28 11:36:32:
Bear in mind that the question what is a word? is far from trivial
to universally answer. So in fact determining the boundaries of a word
can be complex. As far as I can glean from the docs, this job falls to
NSTypesetter, though there isn't an
Bear in mind that the question what is a word? is far from trivial
to universally answer. So in fact determining the boundaries of a word
can be complex. As far as I can glean from the docs, this job falls to
NSTypesetter, though there isn't an obvious method that simply returns
a word.
On Fri, Apr 25, 2008 at 5:13 PM, Yann Disser [EMAIL PROTECTED] wrote:
I realize that my buttons are generally not affected by the changes I make
to the bool-values. Only the other way around.
On Sun, Apr 27, 2008 at 10:59 AM, Yann Disser [EMAIL PROTECTED] wrote:
The problem was, that I was
hi everybody,
I searched the web but I'm probably not asking the right question :/
Is there a way how to use AddressBook data with bindings directly (I
mean without writing glue code for extracting values wrapped with
properties)?
I mean I can write bunch of repeating code and add it to
I don't see any way to do it, but my initial concern is that user
could modify their system to change that height - maybe for visually
impaired users.
Also, as Adam points out - there's no guarantee that this height will
not change in a future release.
Oh well,
#define
On Mon, Apr 28, 2008 at 12:39 PM, Kristopher Matthews [EMAIL PROTECTED] wrote:
I don't see any way to do it, but my initial concern is that user could
modify their system to change that height - maybe for visually impaired
users.
You could perhaps use [[yourPopupButton menu] menuBarHeight]?
Graham,
Thanks for your reply! But how can I find the range of the word
given
the glyph index? I just can not find an API doing so.
So I don't think this is the underlying implementation. Any comments
from others?
The range of the word is up to you to find and depends on the
language.
On Apr 28, 2008, at 5:28 AM, Kristopher Matthews wrote:
I gave that a try, but it seems to always return 0.
It's documented to return 0 for all menus except -[NSApp mainMenu].
Maybe all other items are the same height as the main menu?
After googling, it's a seemingly common problem
Graham,
Thanks so much. I will try it out based on your suggestions and will
keep the result
posted.
On Mon, Apr 28, 2008 at 6:42 PM, Graham Cox [EMAIL PROTECTED] wrote:
NSTextView has this:
- (NSRange)selectionRangeForProposedRange:(NSRange)proposedSelRange
On Mon, Apr 28, 2008 at 2:21 PM, Adam R. Maxwell [EMAIL PROTECTED] wrote:
It's documented to return 0 for all menus except -[NSApp mainMenu]. Maybe
all other items are the same height as the main menu?
Even if not, it's probably still a better bet than hard-coding it...
Hamish
On Apr 28, 2008, at 6:33 AM, Hamish Allan wrote:
On Mon, Apr 28, 2008 at 2:21 PM, Adam R. Maxwell [EMAIL PROTECTED]
wrote:
It's documented to return 0 for all menus except -[NSApp
mainMenu]. Maybe
all other items are the same height as the main menu?
Even if not, it's probably still a
On Mon, Apr 28, 2008 at 2:48 PM, Adam R. Maxwell [EMAIL PROTECTED] wrote:
I just don't trust that method, since the main menu bar has always looked
taller than a menu item, and it could easily change without changing menu
item height. What I want is something akin to -[NSMenuView
On Apr 28, 2008, at 7:18 AM, glenn andreas wrote:
On Apr 27, 2008, at 11:44 PM, Adam R. Maxwell wrote:
Sure, but you have no way of knowing what the correct size is for
an NSMenuItem (assuming you want a normal size). I set all menu
item images to 16x16 since that looks approximately
Hi,
I'm kind of stupid today, my question is probably very easy to answer.
I haven't been in programming for some time and somehow cannot manage
solution for my following simple problem..
I got an array 'peeps' populated in apps delegate:
peeps = [[NSArray arrayWithArray:[[ABAddressBook
and I'm trying to display all last names in the table.
- I created NSArrayController ABPeople and set content to my delagate, key
path: peeps
This is imprecise - if there is a problem with this, we won't know
to tell you about it without the specifics of how this works in your
Hello IS,
thanks for your reply.
On 28.4.2008, at 16:46, I. Savant wrote:
and I'm trying to display all last names in the table.
- I created NSArrayController ABPeople and set content to my
delagate, key
path: peeps
This is imprecise - if there is a problem with this, we won't know
to
I did drop content binding for table and checked that lastName was a typo.
I created a textfield and did set it up to:
binding: ABPeople
controller key: arrangedObjects
model:@count
and got correct 388 count of ppl in AB.
So is it the same result as last time (you get the right
On Mon, Apr 28, 2008 at 2:24 AM, Kyle Sluder
[EMAIL PROTECTED] wrote:
On Fri, Apr 25, 2008 at 5:10 AM, an0 [EMAIL PROTECTED] wrote:
Thanks a lot if you or others can give me some more hint.
You really aren't getting the point.
You're returning NO from -readFromData:ofType:error. You're
On Mon, Apr 28, 2008 at 11:45 AM, Michael Ash [EMAIL PROTECTED] wrote:
Nothing is being obstructed. The logged errors happen after the
primary problem occurs. If the primary problem were logging errors,
they would appear before the ones that are caused by the lack of an
error assignment. If
On Apr 28, 2008, at 6:26 AM, Peter Zegelin wrote:
I would like to use the gradiant image found in the standard
NSTableHeaderView as the background image of my own view. I thought
I could just create a subclass of NSTableVIew and draw my own stuff
after letting the view draw itself first,
You know what? I don't think you've ever said that you know that
view.drawing != nil. Check that.
Though NSArchiver says this scenario would produce an exception,
NSKeyedArchiver does not seem to do the same (the documentation
doesn't say what will happen and a quick test with an
I tried to run the code in my main method which worked well, but not
in my AppController.m - does it matter?
Thanks.
On sö 27 apr 2008, at 22.57, Mohsan Khan wrote:
The debugger kicks in and stops at #0 0x7fff80e73d50 in
_objc_fixupMessageRef in a long call stack.
Do I need do include
Folks,
Is there a way to tell if a lib/dylib was built with flat_namespace
turned on? otool perhaps?
Thanks,
- Dave.S
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
Could you post the rest of the crash log? I suspect there might be
input managers or some other 3rd party code loaded into the program
that might be causing this.
Also, the crash log shows it's crashing when trying to use the data
source for a table view, specifically when it asks your
On Apr 28, 2008, at 5:27 AM, Gerriet M. Denkmann wrote:
This is documented in the Mac OS X system documentation.
Where exactly?
I have found a mention of namedfork in man RezWack and some
#defines in /usr/include/sys/paths.h - but no other documentation.
Kind regards,
Gerriet.
When I
On Mon, Apr 28, 2008 at 12:40 PM, Mohsan Khan [EMAIL PROTECTED] wrote:
I tried to run the code in my main method which worked well, but not in my
AppController.m - does it matter?
What Jean-Daniel was asking is what is the specific signal that was
sent when the app crashed? EXC_BAD_ACCESS or
On Monday, April 28, 2008, at 09:41AM, Mohsan Khan [EMAIL PROTECTED] wrote:
I tried to run the code in my main method which worked well, but not
in my AppController.m - does it matter?
Are you using garbage collection? If so, see
On 28-Apr-08, at 12:38 PM, I. Savant wrote:
Does anyone have any suggestions or examples for doing this in a
Leopard-only application? Thanks.
Not Leopard-only, but ...
http://code.google.com/p/zip-framework/
Depending on what you're using it for, it may work well for you. I
use it for
Sorry for my short messages, I was trying to keep it simple clean.
Garbage collection is off.
GCC_ENABLE_OBJC_GC = unsupported
Here is my code:
User clicks a button...
- (IBAction)testAppleScript: (id)sender
{
[self callAppleScript];
}
- (void)callAppleScript
{
is this a concern on Leopard, BTW? IIRC, the BSD
subsystem is no longer optional
Actually, I know it was not optional on 10.4, and I think it might not have
been optional on 10.3. Anybody here remember for sure???
--
Scott Ribe
[EMAIL PROTECTED]
http://www.killerbytes.com/
(303) 722-0567
// size the image for our menu
NSSize size;
size.width = [[NSFont menuFontOfSize:0] pointSize];
size.height = size.width;
This works like a charm.
On Apr 28, 2008, at 9:39 AM, Adam R. Maxwell wrote:
On Apr 28, 2008, at 7:18 AM, glenn andreas wrote:
On Apr
Actually, I know it was not optional on 10.4, and I think it might not have
been optional on 10.3. Anybody here remember for sure???
It was still optional on 10.3; I had a 10.3 app that relied on the
BSD subsystem and at first did not realize it was an optional part of
the install (or that
On Apr 25, 2008, at 7:42 PM, Keary Suska wrote:
on 4/25/08 6:49 PM, [EMAIL PROTECTED] purportedly said:
- (void) setEntry:(SVNWCEntry *)value
{
[self willChangeValueForKey:@entry];
[value retain];
[entry release];
entry = value;
[self didChangeValueForKey:@entry];
}
If you haven't turned
it's not getting called at all. Is it because my method is defined in
category? As I wrote already, I'm able to call my methods from gdb so my
category is up and running
NSLog(@%@, [[[ppl arrangedObjects] objectAtIndex:0] lastName]);
as opposed to
Value
Hi All,
I am developing a Mac cocoa application suite which has a launchd daemon (
which is a pure cocoa application ).
I'm able to launch the cocoa daemon using launchctl command properly. But
when i place the plist in /Librart/LaunchDaemons ,after system restart ,
my system log shows the
On Apr 28, 2008, at 1:00 PM, JanakiRam wrote:
*_RegisterApplication(), FAILED TO establish the default connection
to the
WindowServer,_CGSDefaultConnection() is NULL. *
Activity Monitor shows my daemon is running with root privileges.
Can any one help me to solve this problem. Please
Hi there,
I want to create a password analysis tool that updates an
NSLevelIndicator with each character entered into a
NSSecureTextField. I know how to update the NSLevelIndicator once the
user has finished entering text but how do i update it per character?
To give you a bit more info:
On Apr 28, 2008, at 8:12 AM, Jim Turner wrote:
I've a NSPredicateEditor with some basic popup-popup-view style
templates (where the view is a NSTextField). I am attempting to set
the text field's delegate to one of my objects so I can be notified
when the control text changes. Everything
Unfortunately launch daemons can't be Cocoa applications or
applications that rely on the window server in general (and other
higher APIs). You'll be better off launching it as a user login item
(accounts prefs). These are launched in the user's context and after
the window server is
On Apr 28, 2008, at 12:00 PM, JanakiRam wrote:
I am developing a Mac cocoa application suite which has a launchd
daemon (
which is a pure cocoa application ).
I'm able to launch the cocoa daemon using launchctl command
properly. But
when i place the plist in /Librart/LaunchDaemons ,after
Give your text field a delegate, and in the delegate implement -
controlTextDidChange:.
See the docs for more details.
--Andy
On Apr 28, 2008, at 3:17 PM, Philip Bridson wrote:
Hi there,
I want to create a password analysis tool that updates an
NSLevelIndicator with each character entered
I am building a sample input method and the build succeeds, but the
icon on the executable has a weird circle with bar (like a European do
not enter sign) over it. When I try copying it into Library/Input
Methods it indeed behaves very slowly...practically useless.
I can't figure out what
On Apr 28, 2008, at 2:57 PM, Daniel Child wrote:
I am building a sample input method and the build succeeds, but the
icon on the executable has a weird circle with bar (like a European
do not enter sign) over it. When I try copying it into Library/Input
Methods it indeed behaves very
On Apr 28, 2008, at 10:24 AM, Mohsan Khan wrote:
2008-04-28 19:16:46.910 MyApp[945:10b] Error loading /Library/
ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit
Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/
Contents/MacOS/Adobe Unit Types, 262): no
Hi All,
It can be done, with caveats. For an example, heres a developer
example showing how a banner can be displayed on login, and that links
with Cocoa.framework:
/Developer/Examples/Security/bannersample
However, caveat 1: This is actually an Authorization Plugin, and as
such
More info,
This migh be ovious, but:
I have found out that if I don't modify any of the layers while
dragging a window about - then things stay very stable and look good.
Probably no great surprise. But as soon as I change the colour of a
line for example, flickering occurs like mad.
Ok. Thanks for the reply - this may sound stupid but I haven't dealt
with delegates much. If I make the window controller the delegate
would I just declare a method in that window controller's files as
below?
- (void)controlTextDidChange:(NSNotification)notification
{
runMyFunction();
I uninstalled LCC, restarted and ran my code - and it just works!
Wow, that sure was the fix!
I won't be using LCC anymore.
Thank you Chris and everybody.
/MK
On må 28 apr 2008, at 22.44, Christopher Nebel wrote:
Bingo. Get rid of LCC Scroll Enhancer. It's a known cause of a
variety
otool -hv library.dylib
I don't know if the flags section of the output contains something
when linking using flat name space, but it echo TWOLEVEL if the
library uses two level name space.
Le 28 avr. 08 à 18:44, David Springer a écrit :
Folks,
Is there a way to tell if a lib/dylib was
on 4/28/08 12:49 PM, [EMAIL PROTECTED] purportedly said:
Thanks. I think your hint worked. That is, I'm not sure what you were
suggesting, but I took a guess, and it seems to have worked. But I
still don't quite grasp what's going on, so I'm begging for a touch of
background?
What I did:
Hi everyone,
An app I'm developing has a full-screen slideshow-like view that would
benefit greatly from controls like those shown for Finder and Mail
photo slideshows -- fade in/out on mouse movement, display white
buttons, partial transparency, etc. (though I only need back/forward/
Yup, that's right.
An object that has a delegate sends certain pre-defined messages to
the delegate at certain times. Those times are described by the name
of the delegate method. For example, controlTextDidChange: is sent
after the text in an NSControl changes. The naming convention is
I am looking for JUNIOR TO MID-LEVEL Cocoa talent for a Full-TIme
Position in Santa Monica. One of your members indicated I could post
this job here...can I?
Kristan Kennedy
Manager/Technical/Marketing Talent
Jivaro Professional Headhunters
Southern California Division
310.649.2640 x 121
There was a question here recently that asked for clarification on the
use of a delegate method.
I thought I'd mention that one of the goals of my application AppKiDo
was to help people see what delegates are. In the Quicklist drawer,
you can click on Classes with delegates to see all
I need to have a subclass optionally extend a method already in the
superclass. After some research, my best guess is that an optionally
defined protocol is the best way to go about this. So, what I have in
the superclass is:
@interface ClassA : NSObject
{
...
}
...
@end
@protocol Check
On 28 Apr '08, at 8:56 AM, Kyle Sluder wrote:
Not necessarily true in the general case. The semantics of buffered
output may interfere, especially if instead of just sending
unrecognized selectors to a random object the code were sending
messages to a pointer off in la-la land. It's always a
On 29/04/2008, at 2:58 AM, Aaron Burghardt wrote:
When I learned of it, roughly in the timeframe of Jaguar or Panther,
there was a document with a title like Mac OS X System Overview,
or something similar--I think that it where I read about it. I'm
sure it was documented in somewhere in
On 28 Apr '08, at 5:00 PM, K. Darcy Otto wrote:
I need to have a subclass optionally extend a method already in the
superclass. After some research, my best guess is that an
optionally defined protocol is the best way to go about this.
If you really want a fully abstract method, use a
On Apr 28, 2008, at 17:29:53, Philip Aker wrote:
Should be here (both project and target build settings):
Yeah, in retrospect that's obvious. I tried searching for min, I
thought the search would turn up stuff by command-line option name, too.
--
Rick
I'm using NSXMLParser to read an XML document from a server via
initiWithContentsOfURL. This works just fine under Leopard. I can read and
parse the data just fine, but under Tiger, I get an empty document error:
NSXMLParserErrorDomain = 4 (Empty document). There are several posts in the
archives
On 28 Apr '08, at 6:42 PM, Lorenzo Thurman wrote:
NSString* urlString = [str stringByAddingPercentEscapesUsingEncoding:
NSUTF8StringEncoding];
You shouldn't need this step if 'str' is already a string
representation of the URL. For example, it would convert a ? or #
in the URL into a
My app presents a table of values to the user. The table has two
columns, name and value, which are managed by an
NSDictionaryController bound to an NSDictionary. I have enabled my
users to edit these values (their changes propagate back to the
underlying NSDictionary, and I can then do
If input methods were not allowed, that would mean no one could type
Chinese, Japanese, Korean. I find that hard to believe.
The post seems to be about Input Managers, not input methods.
On Apr 28, 2008, at 4:52 PM, [EMAIL PROTECTED] wrote:
Also, if this is under Leopard, aren't input
That error usually means the application is included as part of the
target. To fix this, just find the application in the Xcode project
and uncheck the target checkbox.
Luke
On Apr 28, 2008, at 11:10 PM, Daniel Child wrote:
Trying to fix the previous problem of an illegitimate app, I
Thanks! That took care of it.
On Apr 28, 2008, at 11:20 PM, Luke Pike wrote:
That error usually means the application is included as part of the
target. To fix this, just find the application in the Xcode project
and uncheck the target checkbox.
Luke
On Apr 28, 2008, at 11:10 PM, Daniel
Peter, could it be because of:
- (void)rulerView:(NSRulerView *)aRulerView handleMouseDown:(NSEvent
*)theEvent;
??
G.
On 29 Apr 2008, at 12:05 pm, Peter Zegelin wrote:
I have a view that creates a 'Tool' on MouseDown and then releases
it on MouseUp. This view also has siblings (my own
On 28/04/08 1:55 AM, Ying Bian [EMAIL PROTECTED] wrote:
I am thinking of developing my own dictionary tool which can detects the word
under the cursor and automatically (or when a modifier key is pressed) popup
a translation window.
After researching for a while, I find it more tricky
It turns out that the exact same configuration WILL build a release
version but NOT a debug version.
How is that even possible?
On Apr 28, 2008, at 4:12 PM, Ricky Sharp wrote:
On Apr 28, 2008, at 2:57 PM, Daniel Child wrote:
I am building a sample input method and the build succeeds, but
Hi all,
I am attempting to add an 'Uninstall' option to an application, to do
this I remove all the support files and then finally delete the
preferences file and terminate the application.
unfortunately (albeit unsurprisingly) the last thing the application
does before it quits is write
FYI, same thing happens in Carbon. Its technically a feature for Drag
support.
--Rob
On Apr 28, 2008, at 8:51 PM, Peter Zegelin wrote:
Hi Graham,
I don't think so as they are my own rulers - I'm not using
NSRulerView. I wasn't even going to mention the rulers! They are
just custom
On Apr 27, 2008, at 1:43 PM, Jerry Krinock wrote:
Graham, welcome to the apparently small club (about 3-4 oddballs)
who care about what version and configuration of their private
framework gets packaged or run.
That group includes most everybody. Everybody wants their tools to
work, and
Dave,
Thanks for the initial response.
My Daemon will perform activity using Foundation Kit API. While it starts
the activity , i am opening the Appkit Window and updating the progress.
Please let us know the alternatives to perform the same activity.
JanakiRam.
On Tue, Apr 29, 2008 at 12:56
You actually just did.
Once again, if you have job postings, please run them past the admins
before posting.
[EMAIL PROTECTED]
thanks
scott anguish
moderator
On Apr 28, 2008, at 6:18 PM, Kristan Kennedy wrote:
I am looking for JUNIOR TO MID-LEVEL Cocoa talent for a Full-TIme
Position in
On Tue, Apr 29, 2008 at 12:52 AM, JanakiRam [EMAIL PROTECTED] wrote:
Dave,
Thanks for the initial response.
My Daemon will perform activity using Foundation Kit API. While it starts
the activity , i am opening the Appkit Window and updating the progress.
Please let us know the
On 28 Apr '08, at 9:52 PM, JanakiRam wrote:
My Daemon will perform activity using Foundation Kit API. While it
starts
the activity , i am opening the Appkit Window and updating the
progress.
If it only performs activity while a user is logged in, does it really
need to run as root?
Hi All,
I want to do group rotation for various objects. Objects are getting rotate
correctly on their center but when I group them the rotated object has got
shift. Note: In case of group only rotated object has got shift. Below is
the code snippet. Let me know I doing correct or not.
84 matches
Mail list logo