Re: Brushed/Polished Metal in 10.5/10.6?
On Mar 14, 2011, at 3:40 PM, Tristan Seifert wrote: > I've been needing an interface similar to the polished metal in Mac OS X 10.4 > in my 10.6 app. First of all, is there a way to get back the brushed metal > using an API call, or how would I implement this? I've accomplished rendering > the metal on the window itself, but the little 'shine' and the title is > giving me quite some trouble. This interface style is gone, dead and buried. Is there a particular reason you want to bring it back? --Kyle Sluder___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Brushed/Polished Metal in 10.5/10.6?
> >> I've been needing an interface similar to the polished metal in Mac OS X >> 10.4 in my 10.6 app. First of all, is there a way to get back the brushed >> metal using an API call, or how would I implement this? I've accomplished >> rendering the metal on the window itself, but the little 'shine' and the >> title is giving me quite some trouble. > you might take a look at BWToolkit or another open source toolkit and build your own custom window styles... ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Faster text drawing with configurable stroke width
On Mar 13, 2011, at 3:03 PM, George Nachman wrote: > Hi cocoa-dev, > > I'm currently drawing text one character at a time with -[NSAttributedString > drawWithRect:options:], and it is really slow. I'm looking for a faster > alternative. I'm not an expert on the Cocoa text system, but it looks like -[NSLayoutManager setLocations:startingGlyphIndexes:count:forGlyphRange:] might be related to doing what you want with the Cocoa text system. --Kyle Sluder___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
IKImageBrowserView items image need to download from internet
I am having trouble with IKImageBrowserView, hope you can give me some guides to find a best solution. Some background information here about my application: There is a massive of graphics on the server site, and have been well organized. On the client site, the application will show customer our graphic collections with IKImageBrowserView. So every browser item cell should get its image from our server site through internet connection, for example, web service. Since there are too many graphics to be shown, we embed the IKImageBrowserView into Scroller view, customer can scroll to find the best image they want. like that: -(id) imageRepresentation { if(image of this item is not exist on local) { // detach a new thread to download the image asynchronously, through web service. // and save it, then return nil. } else { // return the image immediately, which have been saved on local disk before. } } This piece of code maybe meaningless for you to review my question, but it will show you how I get the image for the item cell. The problem comes: when showing the graphics with the IKImageBrowserView, all the items, more than the visible items, begin to fetch their images through web service, this makes my web service too busy to handle so many requests, especially when the customer scroller the view very fast! And my requirement like this: We don't want a lot of items to download images at the same time, we need to control the count and order. And also when customer scroll the image browser view fast, we should forbid the items which is not visible now to download the items, And let the visible items have more higher priority to download the image. Basically, what I am thinking of, is that how to improve the user experience. Maybe my question is not very clear, but I will be happy if I can get questions from you. Thanks. GuoLiang Li ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How hidden the Keyboard in a UIWebView
Anyone have any idea? I am stuck... It's easy do this with UITextView, but the text field in a web page have less control. I really need a new idea, please, anyone give-me a idea??!?!? 2011/3/14 Rodrigo Zanatta Silva > I searched a lot, and all thing that hidden the keyboard is when you are in > a UITextField. > > This is the problem. I am in a UIWebView and the user click in a text box > in the web page, so the iOS open the keyboard. I can know when the keyboard > will show by the UIKeyboardWillShowNotification. But, I want to show > another screen instead the keyboard. > > How can I hidden, or never show the keyboard. If the people cancel my > screen, than I want to keyboard appear. There are any class that I can > manager the keyboard? How can I do this: > > *[keyboard goWay]* and > > *[keyboard show]* > ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iOS 4.2 - Printing Quality
On Mar 14, 2011, at 10:55 PM, Development wrote: > Ok I'm rendering my images slightly larger than the view's that they are > being printed from. > Basically the quality is less than great. Is there a way to change the > CGImage dpi? Or a way to change the quality of the print to maximum? > > Or is print quality basically just what it is on iOS? CGImages have no concept of DPI, the DPI is determined by what size of a space you draw them into and the characteristics of the target context. Printing contexts use 72 coordinate points per inch, so if you want to draw an image into a 1" x 1" space with 300 DPI, then the image needs to be 300x300 and drawn into a rect that is 72x72. As far as the rest, I don't know of any controls on printing, but if your image is only slightly larger that would most likely be the problem – an image that is slightly off from the DPI of the target is more likely to look bad than one that is significantly smaller if only because the resampling will distort the image more. -- David Duncan ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Count of records in an NSArrayController when associated NSTableView is filtered
Hi, I have an NSTableView bound to an NSArrayController. I would like to have a dashboard onscreen that shows counts of the data based on field values in the entity, e.g.: all records records with active = Y records with updated = Y records with updated = N Is it possible to bind these values individually to the same NSArrayController? FYI, I have a set of filters on fields on the NSTableView that filter out some of the records for the user. If not, could anyone tell me how I can implement the type of real time counts described above please? I have Googled and read my books but can't work out the answer. Thanks Darren. ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How hidden the Keyboard in a UIWebView
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/15/11 7:09 AM, Rodrigo Zanatta Silva wrote: > Anyone have any idea? I am stuck... It's easy do this with > UITextView, but the text field in a web page have less control. I > really need a new idea, please, anyone give-me a idea??!?!? Please be patient. If no one responds, it's probably because they don't have an idea either. > 2011/3/14 Rodrigo Zanatta Silva > >> I searched a lot, and all thing that hidden the keyboard is when >> you are in a UITextField. >> >> This is the problem. I am in a UIWebView and the user click in a >> text box in the web page, so the iOS open the keyboard. I can know >> when the keyboard will show by the UIKeyboardWillShowNotification. >> But, I want to show another screen instead the keyboard. Try not using a UIWebView? This whole scheme sounds a bit fishy to me... if you are interfacing with a web service, for example, you should probably implement a native UI and use XML, JSON, etc. to talk the the site. I do know that there are some reasons you would want to do this, such as displaying a keypad for numeric entry. This _ought_ to be handled with XHTML's inputmode attribute, which MobileSafari doesn't support. For any Apple engineers out there, I filed a bug a long time ago on this... rdar://6404093 >> How can I hidden, or never show the keyboard. If the people cancel >> my screen, than I want to keyboard appear. There are any class that >> I can manager the keyboard? How can I do this: >> >> *[keyboard goWay]* and >> >> *[keyboard show]* I have no special insights on this, but you might check out http://stackoverflow.com/questions/792035/how-do-i-cancel-a-text-field-edit-in-a-uiwebview This purports to let you lose the keyboard via defocusing in JavaScript. You would then probably need to present your own view for input on top of/next to the UIWebView and write controller code to send it into the UIWebView. Also see http://stackoverflow.com/questions/2749486/fill-uiwebview-textinput-with-custom-keyboard Sounds like a huge headache to me, though, and again I question the wisdom of what you are trying to do. Perhaps you can elaborate on WHY you need to this and someone on the list might offer a more robust and probably simpler solution. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFNf9TMaOlrz5+0JdURAmJ3AJ0bBHozwjR4gboflOeyvJ3lBpXotgCeLC/y pvvZ3U04Qt956lkho/e6Tmw= =nZnY -END PGP SIGNATURE- ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
crash in initWithCoder
I'm getting a crash in initWithCoder, which seems related to decoding a property called "value", which is of type id. Sometimes this object is an NSString, sometimes it's an NSNumber, and sometimes it's an NSArray. The crash only occurs in cases where "value" is an NSArray. The last few lines in my backtrace are: #0 0x963c4206 in szone_malloc_should_clear () #1 0x963c41a8 in malloc_zone_malloc () #2 0x94920a13 in _CFRuntimeCreateInstance () #3 0x94943482 in CFNumberCreate () #4 0x949586f2 in __CFBinaryPlistCreateObject2 () #5 0x94985fe0 in __CFBinaryPlistCreateObject () #6 0x9823eb11 in _decodeObjectBinary () #7 0x98240314 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] () #8 0x98240981 in -[NSArray(NSArray) initWithCoder:] () #9 0x9823f508 in _decodeObjectBinary () #10 0x9823e800 in _decodeObject () #11 0x000cdf05 in -[CbCM_Node initWithCoder:] (self=0x4098770, _cmd=0x9433805c, aDecoder=0x410f1c0) at /Volumes/Wheet-Docs/jamesmaxwell/Documents/xcode/rubato/ManuScore+MusiCOG/ManuScore Test Build/ManuScore/CbCM_Node.m:573 From this, I'm guessing that the problem is happening with one of the members of the "value" array. Does that seem right? (I should mention, though, that the trace isn't always the same...) I am retaining "value" when I decode it, so it's not a simple memory bug. I have also run the code with Zombies (NSZombieEnabled=YES), which doesn't indicate any Zombied objects. Finally, the analyzer sees no memory errors (there are a number of "dead stores" - mostly unused variables - but these aren't likely to be real problems, are they?), so I'm stumped. I'm running Xcode 4, btw. Any thoughts appreciated. J. James B Maxwell Composer/Doctoral Student School for the Contemporary Arts (SCA) School for Interactive Arts + Technology (SIAT) Simon Fraser University jbmaxw...@rubato-music.com jbmax...@sfu.ca ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: crash in initWithCoder
On Mar 15, 2011, at 4:10 PM, James Maxwell wrote: > I'm getting a crash in initWithCoder, which seems related to decoding a > property called "value", which is of type id. Sometimes this object is an > NSString, sometimes it's an NSNumber, and sometimes it's an NSArray. The > crash only occurs in cases where "value" is an NSArray. The last few lines in > my backtrace are: > > #0 0x963c4206 in szone_malloc_should_clear () > #1 0x963c41a8 in malloc_zone_malloc () > #2 0x94920a13 in _CFRuntimeCreateInstance () > #3 0x94943482 in CFNumberCreate () > #4 0x949586f2 in __CFBinaryPlistCreateObject2 () > #5 0x94985fe0 in __CFBinaryPlistCreateObject () > #6 0x9823eb11 in _decodeObjectBinary () > #7 0x98240314 in -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] () > #8 0x98240981 in -[NSArray(NSArray) initWithCoder:] () > #9 0x9823f508 in _decodeObjectBinary () > #10 0x9823e800 in _decodeObject () > #11 0x000cdf05 in -[CbCM_Node initWithCoder:] (self=0x4098770, > _cmd=0x9433805c, aDecoder=0x410f1c0) at > /Volumes/Wheet-Docs/jamesmaxwell/Documents/xcode/rubato/ManuScore+MusiCOG/ManuScore > Test Build/ManuScore/CbCM_Node.m:573 > > From this, I'm guessing that the problem is happening with one of the members > of the "value" array. Does that seem right? (I should mention, though, that > the trace isn't always the same...) > I am retaining "value" when I decode it, so it's not a simple memory bug. I > have also run the code with Zombies (NSZombieEnabled=YES), which doesn't > indicate any Zombied objects. Finally, the analyzer sees no memory errors > (there are a number of "dead stores" - mostly unused variables - but these > aren't likely to be real problems, are they?), so I'm stumped. I'm running > Xcode 4, btw. A crash inside malloc generally means that there's a memory error elsewhere that corrupted malloc's data structures. (Actual bugs in malloc are rare.) malloc may store information before or after each allocation, and inside freed allocations. The usual bugs are: * writing data before or after the bounds of an allocation. Usually this comes from bounds errors in C arrays. * writing data into an allocation after freeing it. NSZombie catches the latter for Objective-C objects. But if the problem is a non-object allocation, or a bounds error, then NSZombie won't help. The next tool to try is Guard Malloc. It catches both of the above errors for any malloc allocation. On the down side, it is slow and memory intensive, but if this -initWithCoder: is running early in app launch then you won't have any trouble with it. http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/guardmalloc.3.html -- Greg Parker gpar...@apple.com Runtime Wrangler ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re-mapping secondary function keys
A long time ago, I managed to somehow change the behavior of the expose key (F3) on my MacBook Pro. Instead of Exposeing all windows, it would reveal the desktop. I either found a preference in the UI somewhere, or I set a user default on the command line, or I modified a file in the System somewhere. For the life of me, I can't remember what I did. I'd like to do that on my new computer, but don't remember what I did on the old. Any idea how one changes the behavior of those keys? TIA, Rick ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Re-mapping secondary function keys
On Mar 15, 2011, at 10:02 PM, Mark Montague wrote: > You're on the wrong mailing list -- this is not a Cocoa development question. > > Go to System Preferences -> Exposé and Spaces -> Exposé, and select "F3" from > the first of the two "Show Desktop" pulldown menus. Well, it's a general OS development question. Your solution is not the answer. That makes F3 be the "Show Desktop" key, but not the Expose secondary function on that key. There's not really a "general" dev list. This seems as appropriate as the Carbon-dev list. The general question I have is, how does one re-map the *secondary* F-key behaviors? -- Rick ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSTableView Column Count
I am trying to make an NSTableView with only one column. Here is what I do: 1. Open nib 2. Add TableView 3. Decrease column count 4. Save the NIB However if I build and run, I still get 2 columns. Any suggestions? ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[Moderator] Lion NDA reminder
While there haven’t been any issues that I’m aware of I wanted to take an opportunity to remind subscribers... Lion APIs, features, changes, etc. are all covered by non-disclosure. So they can’t be discussed here. However, there are forums at devforums.apple.com that have facilities for this. So head over there for those questions/comments/etc. Thanks in advance [scott] moderator ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTableView Column Count
On Mar 15, 2011, at 1:13 PM, Nicholas Zaccardi wrote: > I am trying to make an NSTableView with only one column. Here is what I do: > > 1. Open nib > 2. Add TableView > 3. Decrease column count > 4. Save the NIB > > However if I build and run, I still get 2 columns. Any suggestions? are you sure you’re getting two columns, and not one that isn’t the full width of the table? ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Count of records in an NSArrayController when associated NSTableView is filtered
assuming I understand (that you want the tableview, but you also want text fields that have these summaries separate)... you could certainly use separate methods with NSPredicates that examine the original data model to return those numbers. If you’re table is filtered you could incorporate that predicate as well. Bindings isn’t an exclusive technology. you can use it with normal programming techniques (in fact, you can do that within the same table., simply don’t bind a column, and then implement the datasource method only for that column - not relevant, but still) On Mar 15, 2011, at 4:55 PM, Darren Wheatley wrote: > Hi, > > I have an NSTableView bound to an NSArrayController. > > I would like to have a dashboard onscreen that shows counts of the data > based on field values in the entity, e.g.: > > all records > records with active = Y > records with updated = Y > records with updated = N > > Is it possible to bind these values individually to the same > NSArrayController? FYI, I have a set of filters on fields on the > NSTableView that filter out some of the records for the user. > > If not, could anyone tell me how I can implement the type of real time > counts described above please? I have Googled and read my books but can't > work out the answer. > > Thanks > > Darren. > ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [SOLVED] Re-mapping secondary function keys
Argh. It was being re-mapped in the CGEventTap I wrote. I just overlooked it in the code. Sorry for the noise. -- Rick On Mar 15, 2011, at 10:05 PM, Rick Mann wrote: > > On Mar 15, 2011, at 10:02 PM, Mark Montague wrote: > >> You're on the wrong mailing list -- this is not a Cocoa development question. >> >> Go to System Preferences -> Exposé and Spaces -> Exposé, and select "F3" >> from the first of the two "Show Desktop" pulldown menus. > > Well, it's a general OS development question. Your solution is not the > answer. That makes F3 be the "Show Desktop" key, but not the Expose secondary > function on that key. > > There's not really a "general" dev list. This seems as appropriate as the > Carbon-dev list. > > The general question I have is, how does one re-map the *secondary* F-key > behaviors? > > -- > Rick > > ___ > > 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.apple.com/mailman/options/cocoa-dev/rmann%40latencyzero.com > > This email sent to rm...@latencyzero.com ___ 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.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com