Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old Jan 26, 2013, 09:13 PM   #1
Blakeasd
macrumors 6502a
 
Join Date: Dec 2009
Expression is not Assignable

Hello,

I am working on a window that is a subclass of the INAppStoreWindow. I am attempting to add an NSTextField to the window, which I have done, but there are some "fine tuning" issues. The INAppStoreWindow is a window that lets you get its "titlebarview" and add stuff to it. I have added a textfield to it like this:

Code:
 [_window setTitleBarHeight:60.0]; //1
    
    NSView *titleBarView = self.window.titleBarView; //2

    newTitleView.bounds.size.width = titleBarView.bounds.size.width; //3
    
    
    [titleBarView addSubview:newTitleView]; //4
The newTitleView is an IBOutlet in Interface Builder (a view with the textfield in it), and the _window is just my standard INAppStoreWindow. The view has the textfield perfectly aligned in it and displays fine in the window's titlebar. The issue is resizing. The textfield won't resize when the window resizes. I though that to fix this I should make the newTitleView change in width with the titleBarView, so I added line 3 above. I get an error though when I try to run it, stating: "The Expression is not assignable." So how can I make it "Assignable". And if I do succeed, will the textfield resize?

Thanks!
Blakeasd is offline   0 Reply With Quote

 
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Regular expression / sed question. Big Dave Mac Programming 9 Feb 26, 2014 11:51 PM
AE Expression to tie image brightness to 3d light intensity value Policar Digital Video 0 Jan 7, 2013 11:39 AM
Resolved: Onkyo HDMI Assignable Port Macman45 Digital Audio 0 Jul 24, 2012 12:23 AM

Forum Jump

All times are GMT -5. The time now is 09:05 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC